Module: Backframe::ActsAsAPI::Errors
- Defined in:
- lib/backframe/actioncontroller/acts_as_api/errors.rb
Instance Method Summary collapse
- #resource_not_found ⇒ Object
- #route_not_found ⇒ Object
- #unauthenticated_request ⇒ Object
- #unauthorized_request ⇒ Object
Instance Method Details
#resource_not_found ⇒ Object
12 13 14 |
# File 'lib/backframe/actioncontroller/acts_as_api/errors.rb', line 12 def resource_not_found error_response(:resource_not_found, 404) end |
#route_not_found ⇒ Object
16 17 18 |
# File 'lib/backframe/actioncontroller/acts_as_api/errors.rb', line 16 def route_not_found error_response(:route_not_found, 404) end |
#unauthenticated_request ⇒ Object
4 5 6 |
# File 'lib/backframe/actioncontroller/acts_as_api/errors.rb', line 4 def unauthenticated_request error_response(:unauthenticated, 401) end |
#unauthorized_request ⇒ Object
8 9 10 |
# File 'lib/backframe/actioncontroller/acts_as_api/errors.rb', line 8 def error_response(:unauthorized, 403) end |