Class: JSONAPI::Utils::Exceptions::NotFoundError
- Inherits:
-
Exceptions::Error
- Object
- Exceptions::Error
- JSONAPI::Utils::Exceptions::NotFoundError
- Defined in:
- lib/jsonapi/utils/exceptions.rb
Instance Method Summary collapse
Instance Method Details
#code ⇒ Object
18 |
# File 'lib/jsonapi/utils/exceptions.rb', line 18 def code; 404 end |
#errors ⇒ Object
20 21 22 23 24 25 |
# File 'lib/jsonapi/utils/exceptions.rb', line 20 def errors [JSONAPI::Error.new(code: 404, status: :not_found, title: 'Not Found', detail: 'The requested resource was not found.')] end |