Module: StandardExceptions::HttpMethods
Class Method Summary collapse
- .forbidden!(message = nil) ⇒ Object
- .internal_server_error!(message = nil) ⇒ Object
- .not_found!(message = nil) ⇒ Object
-
.unauthorized!(message = nil) ⇒ Object
HTTP Status Errors.
Class Method Details
.forbidden!(message = nil) ⇒ Object
13 14 15 |
# File 'lib/standard_exceptions/http_methods.rb', line 13 def forbidden!(=nil) raise Forbidden.new() end |
.internal_server_error!(message = nil) ⇒ Object
21 22 23 |
# File 'lib/standard_exceptions/http_methods.rb', line 21 def internal_server_error!(=nil) raise InternalServerError.new() end |
.not_found!(message = nil) ⇒ Object
17 18 19 |
# File 'lib/standard_exceptions/http_methods.rb', line 17 def not_found!(=nil) raise NotFound.new() end |
.unauthorized!(message = nil) ⇒ Object
HTTP Status Errors
9 10 11 |
# File 'lib/standard_exceptions/http_methods.rb', line 9 def (=nil) raise Unauthorized.new() end |