{
  "$id": "urn:mars:schema:v1:error-response",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Canonical JSON error body returned by MARS HTTP endpoints.",
  "properties": {
    "errorCode": {
      "description": "Machine-readable MARS error code such as `MARS-008`.",
      "type": "string"
    },
    "httpStatus": {
      "description": "HTTP status echoed in the body.",
      "format": "uint16",
      "maximum": 65535,
      "minimum": 0,
      "type": "integer"
    },
    "message": {
      "description": "Human-readable diagnostic.",
      "type": "string"
    }
  },
  "required": [
    "errorCode",
    "message",
    "httpStatus"
  ],
  "title": "ErrorResponse",
  "type": "object"
}
