Skip to content
Last updated

Error Reference

The Apiera API uses RFC 7807 Problem Details for error responses.

Error Response Format

All errors return a Problem Details JSON object:

{
  "type": "https://docs.apiera.io/problems/not-found",
  "title": "Not Found",
  "status": 404,
  "detail": "The requested resource could not be found.",
  "instance": "/v1/products/abc123",
  "correlationId": "550e8400-e29b-41d4-a716-446655440000"
}
FieldDescription
typeURI reference identifying the problem type
titleShort, human-readable summary
statusHTTP status code
detailHuman-readable explanation
instanceURI reference to the specific occurrence
correlationIdUnique identifier for tracking and support

Common Errors

Client Errors (4xx)

Server Errors (5xx)

Validation Errors

Validation errors (422) include an errors array:

{
  "type": "https://docs.apiera.io/problems/unprocessable-entity",
  "title": "Unprocessable Entity",
  "status": 422,
  "detail": "The request was well-formed but contains semantic errors.",
  "instance": "/v1/products",
  "correlationId": "550e8400-e29b-41d4-a716-446655440000",
  "errors": [
    {
      "code": "INVALID_SKU",
      "message": "SKU must be unique within the product family"
    },
    {
      "code": "REQUIRED_FIELD",
      "message": "Field 'name' is required"
    }
  ]
}

Using Correlation IDs

Include the correlationId when contacting support to help diagnose issues quickly.