Our error structure and status codes
Status Codes
We will always return one of the following:
Code | Name | Description |
---|---|---|
200 | OK | Everything worked as expected |
400 | Bad Request | Something went wrong. Often a required param is missing |
401 | Unauthorized | Not a valid API Key |
402 | Request failed | Params were right, but something failed, also used to rejected charges |
404 | Not found | Requested item doesn't exists |
422 | Unprocessable Entity | Some param is invalid |
500 | Server Error | Something went wrong on our servers |
501 | Server Error | Feature not available yet |
errors: [{
type: "The error type",
message: "The description of the problem"
}]
errors: [{
type: "The error type",
message: "The description of the problem"
}, {
type: "Another error",
message: "Some other error"
}]
Our error messages always follows this format
Attention!
We may return errors not listed above, so don't rely on the errors. Check the content of the JSON and messages!