Skip to main content
Errors come back as JSON with an error object:
The wording of error.message can change. Handle errors by HTTP status code rather than matching the message text.