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
14 15 16 |
# File 'lib/backframe/actioncontroller/acts_as_api/errors.rb', line 14 def resource_not_found error_response(:resource_not_found, 404) end |
#route_not_found ⇒ Object
18 19 20 |
# File 'lib/backframe/actioncontroller/acts_as_api/errors.rb', line 18 def route_not_found error_response(:route_not_found, 404) end |
#unauthenticated_request ⇒ Object
6 7 8 |
# File 'lib/backframe/actioncontroller/acts_as_api/errors.rb', line 6 def unauthenticated_request error_response(:unauthenticated, 401) end |
#unauthorized_request ⇒ Object
10 11 12 |
# File 'lib/backframe/actioncontroller/acts_as_api/errors.rb', line 10 def error_response(:unauthorized, 403) end |