Docs Index

Doc

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" }
Code language: JSON / JSON with Comments (json)

The following is a table of HTTP codes from errors that you can expect to see:

HTTP CodeMessageDescription
200Bad RequestEverything’s good!
400Bad RequestYou sent a malformed request, like a programming language we don’t yet support.
401Invalid API KeyInvalid API key Your API key wasn’t tied to a valid account.
403ForbiddenYou don’t have permission to access that resource.
404Resource not foundWe couldn’t find that resource for you… It probably doesn’t exist.
429Over quotaYou’ve exceeded the number of pads your plan allows in a month. Upgrade your plan or shoot me an email!