module StandardExceptions::HttpMethods
Public Instance Methods
forbidden!(message=nil)
click to toggle source
# File lib/standard_exceptions/http_methods.rb, line 13 def forbidden!(message=nil) raise Forbidden.new(message) end
internal_server_error!(message=nil)
click to toggle source
# File lib/standard_exceptions/http_methods.rb, line 21 def internal_server_error!(message=nil) raise InternalServerError.new(message) end
not_found!(message=nil)
click to toggle source
# File lib/standard_exceptions/http_methods.rb, line 17 def not_found!(message=nil) raise NotFound.new(message) end