koine-rest_client 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d4381e7f1bd444c3c2c8077d4b4c3b49fd369687a329d08c96d554e94d22284
4
- data.tar.gz: 18cac30027e56414e700cf6214e3bbfbdc8ea4291ffbf6e284f17e67e0f23025
3
+ metadata.gz: 2d572492742b6f56fb9c22b8c2074aed8a5383d90875938dfbaf35ccb22d2fe8
4
+ data.tar.gz: ce09b90ea4866d789f37a777bb935b2d8ea66a9f6914de6fd28e286d80857ae5
5
5
  SHA512:
6
- metadata.gz: '0526944dac61323072d5d53b62c2211f625a1d3630aa8585e3cf7bb232059ab8fc077ef7f443ec7392ef0600081e9efa1e5a993a7e9cfab7b223f5457ca11798'
7
- data.tar.gz: 7b1589c08e089ea1240a740206f72b38526be10c955d8e39b3eaad0679a4587c61301a988747669ab5856f910134120c7852d79685d4102f9b516f798800e439
6
+ metadata.gz: f34b6d2a7605afcad75f8f51e301c66470d965d9e0d8fc86f44e0c25c37c1f8e4e6c365ecca9209ac7e27e3a6f679019f42702615e0eefcdcd23c0bef9e8d8cc
7
+ data.tar.gz: c4cdb8cac74fceca8815e94e3939b2d0f95d9a3ea244a80658358271e73cad5da4c112d30417567a965f8e4ea2d12f93f2a1f45c3d646feff31d4d301c1d2787
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses
4
+ #
3
5
  module Koine
4
6
  module RestClient
5
7
  # base class for http errors
@@ -35,6 +37,16 @@ module Koine
35
37
  RangeNotSatisfiableError = Class.new(Error)
36
38
  ExpectationFailedError = Class.new(Error)
37
39
  ImATeapotError = Class.new(Error)
40
+ MisdirectedRequestError = Class.new(Error)
41
+ UnprocessableEntityError = Class.new(Error)
42
+ LockedError = Class.new(Error)
43
+ FailedDependencyError = Class.new(Error)
44
+ TooEarlyExperimentalError = Class.new(Error)
45
+ UpgradeRequiredError = Class.new(Error)
46
+ PreconditionRequiredError = Class.new(Error)
47
+ TooManyRequestsError = Class.new(Error)
48
+ RequestHeaderFieldsTooLargeError = Class.new(Error)
49
+ UnavailableForLegalReasonsError = Class.new(Error)
38
50
 
39
51
  # 500
40
52
  InternalServerError = Class.new(Error)
@@ -41,6 +41,16 @@ module Koine
41
41
  416 => RangeNotSatisfiableError,
42
42
  417 => ExpectationFailedError,
43
43
  418 => ImATeapotError,
44
+ 421 => MisdirectedRequestError,
45
+ 422 => UnprocessableEntityError,
46
+ 423 => LockedError,
47
+ 424 => FailedDependencyError,
48
+ 425 => TooEarlyExperimentalError,
49
+ 426 => UpgradeRequiredError,
50
+ 428 => PreconditionRequiredError,
51
+ 429 => TooManyRequestsError,
52
+ 431 => RequestHeaderFieldsTooLargeError,
53
+ 451 => UnavailableForLegalReasonsError,
44
54
  500 => InternalServerError,
45
55
  501 => NotImplementedError,
46
56
  502 => BadGatewayError,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Koine
4
4
  module RestClient
5
- VERSION = '1.1.0'
5
+ VERSION = '1.1.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: koine-rest_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Jacobus
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-16 00:00:00.000000000 Z
11
+ date: 2022-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable