Sha256: fd827c73a7ae7731ddc19c66fd8d3b9356db341d73ffa5cef8e14729f594d573

Contents?: true

Size: 1.81 KB

Versions: 3

Compression:

Stored size: 1.81 KB

Contents

module JSONAPI
  VALIDATION_ERROR = 100
  INVALID_RESOURCE = 101
  FILTER_NOT_ALLOWED = 102
  INVALID_FIELD_VALUE = 103
  INVALID_FIELD = 104
  PARAM_NOT_ALLOWED = 105
  PARAM_MISSING = 106
  INVALID_FILTER_VALUE = 107
  COUNT_MISMATCH = 108
  KEY_ORDER_MISMATCH = 109
  KEY_NOT_INCLUDED_IN_URL = 110
  INVALID_INCLUDE = 112
  RELATION_EXISTS = 113
  INVALID_SORT_CRITERIA = 114
  INVALID_LINKS_OBJECT = 115
  TYPE_MISMATCH = 116
  INVALID_PAGE_OBJECT = 117
  INVALID_PAGE_VALUE = 118
  INVALID_FIELD_FORMAT = 119
  INVALID_FILTERS_SYNTAX = 120
  SAVE_FAILED = 121
  FORBIDDEN = 403
  RECORD_NOT_FOUND = 404
  UNSUPPORTED_MEDIA_TYPE = 415
  LOCKED = 423

  TEXT_ERRORS =
    { VALIDATION_ERROR => 'VALIDATION_ERROR',
      INVALID_RESOURCE => 'INVALID_RESOURCE',
      FILTER_NOT_ALLOWED => 'FILTER_NOT_ALLOWED',
      INVALID_FIELD_VALUE => 'INVALID_FIELD_VALUE',
      INVALID_FIELD => 'INVALID_FIELD',
      PARAM_NOT_ALLOWED => 'PARAM_NOT_ALLOWED',
      PARAM_MISSING => 'PARAM_MISSING',
      INVALID_FILTER_VALUE => 'INVALID_FILTER_VALUE',
      COUNT_MISMATCH => 'COUNT_MISMATCH',
      KEY_ORDER_MISMATCH => 'KEY_ORDER_MISMATCH',
      KEY_NOT_INCLUDED_IN_URL => 'KEY_NOT_INCLUDED_IN_URL',
      INVALID_INCLUDE => 'INVALID_INCLUDE',
      RELATION_EXISTS => 'RELATION_EXISTS',
      INVALID_SORT_CRITERIA => 'INVALID_SORT_CRITERIA',
      INVALID_LINKS_OBJECT => 'INVALID_LINKS_OBJECT',
      TYPE_MISMATCH => 'TYPE_MISMATCH',
      INVALID_PAGE_OBJECT => 'INVALID_PAGE_OBJECT',
      INVALID_PAGE_VALUE => 'INVALID_PAGE_VALUE',
      INVALID_FIELD_FORMAT => 'INVALID_FIELD_FORMAT',
      INVALID_FILTERS_SYNTAX => 'INVALID_FILTERS_SYNTAX',
      SAVE_FAILED => 'SAVE_FAILED',
      FORBIDDEN => 'FORBIDDEN',
      RECORD_NOT_FOUND => 'RECORD_NOT_FOUND',
      UNSUPPORTED_MEDIA_TYPE => 'UNSUPPORTED_MEDIA_TYPE',
      LOCKED => 'LOCKED'
    }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jsonapi-resources-0.4.2 lib/jsonapi/error_codes.rb
jsonapi-resources-0.4.1 lib/jsonapi/error_codes.rb
jsonapi-resources-0.4.0 lib/jsonapi/error_codes.rb