Errors
CoderPad will always return a top-level JSON object, along with a status code to indicate success or failure. When successful, the API will return an HTTP 200, as well as { status: “OK” }.
When calls are unsuccessful, they return an appropriate HTTP code, as well as something like
{
"status": "ERROR",
"message": "Invalid API key"
}
The following is a table of HTTP codes from errors that you can expect to see:
HTTP Code | Message | Description |
---|---|---|
200 | Bad Request | Everything’s good! |
400 | Bad Request | You sent a malformed request, like a programming language we don’t yet support. |
401 | Invalid API Key | Invalid API key Your API key wasn’t tied to a valid account. |
403 | Forbidden | You don’t have permission to access that resource. |
404 | Resource not found | We couldn’t find that resource for you… It probably doesn’t exist. |
429 | Over quota | You’ve exceeded the number of pads your plan allows in a month. Upgrade your plan or shoot me an email! |