lib/exceptionally/exceptions.rb in exceptionally-1.0.0 vs lib/exceptionally/exceptions.rb in exceptionally-1.0.1

- old
+ new

@@ -123,10 +123,16 @@ def initialize(message = nil) super(message, 417, "Expectation Failed") end end + class UnprocessableEntity < Error + def initialize(message = nil) + super(message, 422, "Unprocessable Entity") + end + end + class NotImplemented < Error def initialize(message = nil) super(message, 501, "Not Implemented") end end @@ -171,12 +177,13 @@ class Http413 < TooLarge; end class Http414 < TooLong; end class Http415 < UnsupportedMedia; end class Http416 < RangeNotSatisfiable; end class Http417 < ExpectationFailed; end + class Http422 < UnprocessableEntity; end class Http500 < Error; end class Http501 < NotImplemented; end class Http502 < BadGateway; end class Http503 < ServiceUnavailable; end class Http504 < GatewayTimeout; end class Http505 < HttpVersionNotSupported; end -end \ No newline at end of file +end