Error Responses

ESS follows the RFC 9110 HTTP response status codesarrow-up-right standard:

100 - 199
Associated with Informational responses.

200 - 299

Associated with Successful responses.

300 - 399

Associated with Redirection responses.

400 – 499

Associated Client Error responses.

500 - 599

Associated with Server Error responses.

Per the RFC, error responses have status codes 400-599 (inclusive).

Error Response and Format

Error Response Fields

circle-info

Changed in version 2.3.0.

Starting in version 2.3, ESS services can provide more information when returning HTTP errors (i.e., HTTP status codes 400-599 ). Specifically, all ESS services follow RFC 9457 (Problem Details for HTTP APIs)arrow-up-right . That is, all ESS services may include the fields specified in RFC 9457arrow-up-right to provide more information:

{
  "status": <status code>,
  "title":  "<summary>",
  "detail": "<additional description/details of the error>",
  "instance": "<OpenTelemetry Span Id>"
}

title

Corresponding summary of the problem type.

detail

Additional details of the error.

For example:

For UMA and OIDC Broker services, they continue, as in earlier versions, to follow RFC 6749 (OAuth 2.0)arrow-up-right, and the new RFC 9457arrow-up-right fields are added to their error response.

For example:

You can correlate by the span ID if that particular span (unit of work) emits a log record. For more information on ESS’ support of OpenTelemetry, see Appendix: OpenTelemetry .

Error Response Format

circle-info

Error Pages For error responses to browser requests, the error pages ( text/html media type) returned by ESS display the new information.

Last updated