application/json media type:
code field holds the HTTP status as a number. The machine-readable token is in title. Branch on title, not on code.
TED JD and JD Courier return these errors in their own error format.
Field definitions
code– The HTTP status code, as an integer. It repeats the status of the response.title– A short machine-readable token for the error class. Use this value for programmatic handling.message– A human-readable description of what went wrong.
Client errors
Authentication runs in the application that hosts the admin surface, ahead of the configuration routes. A request that fails authentication receives a 401 from that host application, in its own error format. Refer to the API reference of the application whose configuration you manage.

