Error Handling
There will be a code
and message
in the response body for every request.
- Code: A string literal in the form of
/[A-Z_0-9]+/
, which summarizes the problem. For example,AUTH_KEY_UNREGISTERED
. - Error Message: A human-readable message that describes the error in detail. For example,
"The API key is invalid or expired."