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
Each code links to a page with common causes, resolution steps, and an example body. Browse them all
under 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.