Errors
Every non-2xx response is an RFC 9457 problem+json document.
When a request fails, the API returns a standard RFC 9457
application/problem+json body — never an HTML page or an unstructured string:
The type is a dereferenceable URL — open it for a full explanation of that problem. Browse them all
under Problem types.
Status codes
For the complete list — including 405, 409, 415, 502, 503, 504 — and a page per type, see
Problem types.
Handling errors
Branch on the machine-readable code, not the human-readable title (titles may be reworded):
Always log the request_id from failed responses. It’s the fastest way for USGM support to trace
what happened.