Sha256: 5828f0eb110fd70b4b4174831957857f59d3220fbfd5b8670905a5c1a07b8b01
Contents?: true
Size: 627 Bytes
Versions: 23
Compression:
Stored size: 627 Bytes
Contents
module FunWithJsonApi module Exceptions # A server MUST return 409 Conflict when processing a PATCH request in which the resource # object's type and id do not match the server's endpoint class InvalidDocumentIdentifier < FunWithJsonApi::Exception EXCEPTION_CODE = 'invalid_document_identifier'.freeze def initialize(message, payload = ExceptionPayload.new) payload.code ||= EXCEPTION_CODE payload.title ||= I18n.t(EXCEPTION_CODE, scope: 'fun_with_json_api.exceptions') payload.status ||= '409' payload.pointer ||= '/data/id' super end end end end
Version data entries
23 entries across 23 versions & 1 rubygems