Skip to content

unexpected_error โ€‹

unexpected_error

Description โ€‹

An unexpected server-side error occurred while handling the request.

HTTP Status โ€‹

500 Internal Server Error

doc_url Format โ€‹

The doc_url value is an absolute URL and changes by environment:

<docs-base-url>/errors/unexpected_error

Typical Causes โ€‹

  • An unhandled code path was reached.
  • A downstream dependency failed in a way the controller did not expect.
  • The endpoint hit a bug or invariant violation.

Example โ€‹

Response:

json
{
  "errors": [
    {
      "code": "unexpected_error",
      "message": "An unexpected error occurred",
      "doc_url": "https://docs.example.com/errors/unexpected_error"
    }
  ]
}

How To Fix โ€‹

  1. Retry if the operation is safe and idempotent.
  2. Check service logs and dependency health.
  3. Contact platform support if the error persists.