Skip to main content

CodedError

codestring

Stable, machine-readable application error code (namespaced dotted string). Present only on user-actionable 4xx errors; clients map it to a localized message.

Example: entitlement.pipeline_limit_reached
detailstring

A human-readable explanation specific to this occurrence of the problem.

Example: Property foo is required but is missing.
errors object[]nullable

Optional list of individual error details

  • Array [
  • locationstring

    Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

    messagestring

    Error message text

    value

    The value at the given location

  • ]
  • instancestring<uri>

    A URI reference that identifies the specific occurrence of the problem.

    Example: https://example.com/error-log/abc123
    params object

    Structured values for client-side interpolation/localization of this error, e.g. {"plan":"free","max":3,"current":3}. Optional.

    property name*any

    Structured values for client-side interpolation/localization of this error, e.g. {"plan":"free","max":3,"current":3}. Optional.

    statusinteger<int64>

    HTTP status code

    Example: 400
    titlestring

    A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

    Example: Bad Request
    typestring<uri>

    A URI reference to human-readable documentation for the error.

    Default value: about:blank
    Example: https://example.com/errors/example
    CodedError
    {
    "code": "entitlement.pipeline_limit_reached",
    "detail": "Property foo is required but is missing.",
    "errors": [
    {
    "location": "string",
    "message": "string"
    }
    ],
    "instance": "https://example.com/error-log/abc123",
    "params": {},
    "status": 400,
    "title": "Bad Request",
    "type": "https://example.com/errors/example"
    }