Class: JSONAPI::Utils::Exceptions::NotFoundError

Inherits:
Exceptions::Error
  • Object
show all
Defined in:
lib/jsonapi/utils/exceptions.rb

Instance Method Summary collapse

Instance Method Details

#codeObject



18
# File 'lib/jsonapi/utils/exceptions.rb', line 18

def code; 404 end

#errorsObject



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