class JsonapiErrorsHandler::Errors::NotFound

Handles serialization of NotFound HTTP error (404 status code)

Public Class Methods

new(message: nil) click to toggle source
# File lib/jsonapi_errors_handler/errors/not_found.rb, line 8
def initialize(message: nil)
  super(
    title: 'Record not Found',
    status: 404,
    detail: message || 'We could not find the object you were looking for.',
    source: { pointer: '/request/url/:id' }
  )
end