Skip to content

ErrorResponse

Every REST API error answers with an ErrorResponse: a message, the reasons that explain it (for a validation error, the fields in error), the HTTP status, and the correlationId to quote when you contact support. See Errors and troubleshooting.

JSON Schema

Example

{
  "message": "The object is not valid",
  "reasons": [
    "/sku: required"
  ],
  "httpStatusCode": 400,
  "httpStatusText": "Bad Request",
  "timestamp": 1763025002,
  "correlationId": "4bf92f3577b34da6a3ce929d0e0e4736"
}

Fields

Required: message.

Field Type Required Description
type URL The page that explains the error's code: https://objectsgrid.com/docs/error-details// (RFC 9457 type)
code string The error's code, such as CART_CHECKED_OUT: stable, never changing meaning. The codes are listed at https://objectsgrid.com/.well-known/error-details/index.json
domain string Who defines the code: objectsgrid.com. A code is unique within its domain
title string The code's fixed, short summary (RFC 9457 title)
detail string What went wrong this time: the same as message (RFC 9457 detail)
instance string This occurrence: the correlation id (RFC 9457 instance)
message string Yes What went wrong, for a person to read
reasons list of string The details, such as each field in error
timestamp number When the error happened, in seconds since 1970
httpStatusCode integer The HTTP status
httpStatusText string The HTTP status's name
correlationId string Identifies the request: its OpenTelemetry trace id, the same as the X-ObjectsGrid-Trace-Id header. Give it to support
errorDetailsLink URL The same as type: the page that explains the error's code