{
  "INVALID_SCHEMA": {
    "data": {
      "errors": "all validation errors",
      "schemaName": "Schema name"
    },
    "description": "Invalid schema",
    "statusCode": 400
  },
  "MISSING_SCHEMA": {
    "data": {
      "schemaName": "Schema name"
    },
    "description": "Schema is not registered in the cache",
    "statusCode": 500
  },
  "MISSING_SCHEMA_NAME": {
    "description": "Schema name is not defined",
    "statusCode": 400
  },
  "MODIFY_PROTECTED_ATTR": {
    "data": {
      "attribute": "The protected attribute"
    },
    "description": "Attempted to modify a protected data attribute",
    "statusCode": 400
  },
  "SCHEMA_EXISTS": {
    "data": {
      "filepath": "File path to the schema",
      "schemaName": "Schema name"
    },
    "description": "A schema already exists with the specified name",
    "statusCode": 400
  },
  "SCHEMA_LOAD_FAILED": {
    "data": {
      "schemaName": "Schema name"
    },
    "description": "Failed to load a JSON schema",
    "statusCode": 500
  },
  "VALIDATION_FAILED": {
    "data": {
      "data": "the data failing validation",
      "errors": "all validation errors",
      "schemaName": "Schema name"
    },
    "description": "Data validation failed",
    "statusCode": 400
  }
}
