Skip to main content

Errors

The Sunset API uses conventional HTTP status codes and returns structured error responses. Every error response includes an X-Request-Id header for debugging.

HTTP Status Codes

Error Response Format

All error responses follow this structure:

Error Codes

PATCH Semantics (JSON Merge Patch)

All PATCH endpoints use JSON Merge Patch semantics (RFC 7396):
  • Only include the fields you want to change.
  • Fields set to null are removed (set to null on the resource).
  • Fields not included in the request body are left unchanged.
  • Nested objects are merged recursively.

Handling Errors