Skip to main content

Errors

Instafill uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Codes in the 5xx range indicate an error with Instafill’s servers (these are rare).

Status CodeDescriptionExplanation
200OKEverything worked as expected.
401UnauthorizedNo valid API key provided.
403ForbiddenThe API key doesn’t have permissions to perform the request.
404Not FoundThe requested resource doesn’t exist.
415Unsupported Content TypeThe content type of the request is not supported.
500, 503Server ErrorsSomething went wrong on Instafill's end. (These are rare.)

Example Error Responses

Unauthorized Access

  • Code: 401 Unauthorized
  • Content:
{
"id": "error_2bf27dd219384d6e803ff5c429811c6d",
"created": "2024-06-20T13:44:33.4378455Z",
"object": "error",
"error_message": "No API key provided."
}

Forbidden Access

  • Code: 403 Forbidden
  • Content:
{
"id": "error_da1da4c1f336410f9cc01000da1b63a4",
"created": "2024-06-20T13:47:56.966815Z",
"object": "error",
"error_message": "Forbidden. Form doesn't belong to the user."
}

Not Found

  • Code: 404 Not Found
  • Content:
{
"id": "error_a7bbc92fe43c46588555335440320428",
"created": "2024-06-20T13:48:31.9782228Z",
"object": "error",
"error_message": "Session not found"
}

Error Responses

  • Code: 415 Unsupported Content Type
  • Content:
{
"id": "error_6b63acaf4baf4d179b33ebe580571c0a",
"created": "2024-06-19T13:45:08.4531108Z",
"object": "error",
"error_message": "Unsupported content type"
}

Internal Server Error

  • Code: 500 Internal Server Error
  • Content:
{
"id": "error_7d7f52761e134352addbd1b406a15ba0",
"created": "2024-06-19T13:41:47.4991643Z",
"object": "error",
"error_message": "Error when processing your request."
}