Errors
Any request that returns an error follows a standard format. Moltin will return an array of errors
that contains objects containing status
, title
and details
.
You'll most likely receive an error if validation fails, something doesn't exist or something went wrong on our end. We return errors inline with the JSON API specification.
The most common response codes you'll get from Moltin will be:
Code | Response |
| Created successfully |
| Updated successfully |
| Deleted successfully |
| Invalid JSON |
| Validation error |
| Something went wrong our side |
Example errors
Below you will find some example error responses from the Moltin API.
Forbidden
You'll most likely receive a 401: Unauthorized
response when you provide an invalid authentication token.
Bad Request
You'll get a 400: Bad Request
when you fail validation.
Rate Limited
You will receive a 429: Too Many Requests
response when you make too many requests.
Not Found
When a resource is not found you will get a 404: Not Found
response.
Internal Server Error
You'll receive a 500: Internal Server Error
response when something goes wrong on our side. We're automatically notified of these errors, and work to resolve them as quickly as possible.
Last updated