Skip to content

Admin API errors

The Admin APIs return these HTTP status codes when a call fails. When the response has a body, it follows the Problem Details format (RFC 9457).

Status codes

Status codeMeaningResponse body
400The data in the request is invalid.Usually a Problem Details body, often with an errors object that lists the invalid fields. A few endpoints return a short text message instead.
401The call couldn’t be authenticated.Usually no body.
403The user or external system calling the API doesn’t have the permission it requires.Usually no body.
404The URL doesn’t match an API, or an ID in the URL doesn’t match an existing object.Often a Problem Details body with more information.
409Conflict – someone else changed the object after you read it, or the object already exists (for example, the user already has an authenticator app).A Problem Details body.
500An internal server error – for example a deadlock, a database timeout, or the database can’t be reached.A Problem Details body.
501The request is valid but not supported – for example, a combination of values the API doesn’t support, or a feature that isn’t included in your Authway edition (for example, adding an OpenID Connect or SAML sign-in method for an organisation on Starter).A Problem Details body.
503A temporary infrastructure problem. Try again later.–

Authway returns 501 rather than 400 for requests that are valid but not supported, so you find most of them while you develop and test your integration. A 400 can still happen in production, for example when end users enter invalid data.

Problem Details body

The body has these members:

MemberContent
typeA link that identifies the kind of error, based on the status code (for example a link to RFC 9110). about:blank if there is no link for the status code.
titleA short, general description of the error, based on the status code.
statusThe HTTP status code.
detailA description of this occurrence of the error.
instanceIdentifies this occurrence of the error, in the format urn:uuid:<id>. Include it when you contact support.
traceIdThe trace ID of the request. Include it when you contact support.
errorsOnly when there are validation errors: an object that maps each field name to its error messages.

The instance is a UUID created from the W3C trace ID of the request, so it identifies the same request as the trace ID in logs. If the request has no W3C trace ID, instance is a new UUID, and traceId holds the ID the server uses for the request.

Related