Where are the API's errors documented?
Every error has the same JSON body, with error.code, error.message,
error.details and requestID. The 20 codes, with every reason, are in
the errors reference. In the contract, ErrorEnvelope is the body and
ErrorCode lists the codes.
More: The REST API, Errors