Error responses
Error responses have a non-200
HTTP status code and sometimes have a JSON body with a human-readable message in the format:
{ "message": "..." }
To check if the request was successful, check that the status code is 200
.
You'll find a list of common codes and messages on the status codes page.