Skip to content
Last updated

Error Response Format

The API returns errors in the following format:

{
  "RequestGUID": "string",
  "ErrorCode": "string",
  "ErrorMessage": "string",
  "StatusCode": "integer",
  "Details": "varies"
}

Fields

NameTypeDescription
RequestGUIDstringA unique identifier for the request
ErrorCodestringA code representing the specific error.
ErrorMessagestringA human-readable message describing the error.
StatusCodeintegerThe HTTP status code associated with the error.
DetailsvariesAdditional details about the error. This varies depending on the type of error.

Details Field Structure

Validation Error

When the error is a validation error, the Details field follows this structure:

[
  {
    "Field": "string",
    "Constraint": "string",
    "Message": "string"
  }
]

Fields

NameTypeDescription
FieldstringThe name of the field that caused the validation error.
ConstraintstringThe specific validation constraint that failed.
MessagestringA message describing the validation error.