Skip to main content
Version: v2

Errors

The Fount's API uses standard HTTP response codes to indicate success or failure of an API request.

In general codes in the 200 range indicate success. Codes in the 400 range indicate some sort of error in the information provided. Codes in the 500 range indicate errors with The Fount's servers and systems.

Along with the response code a human readable message attribute is generally sent explaining what went wrong.

note

If you receive an HTML response when an error occurs check your accept header. The Fount's API will attempt to respond to errors based on your request. By setting the Accept: application/json header you can ensure that you always get a JSON response in all instances.

Response Codes

CodeDescription
200 - OKEverything works as expected.
400 - Bad RequestThe request could not be handled, often due to a missing required parameter or badly formatted data.
401 - UnauthorizedNo valid API token provided or the API token used does not have the required scopes.
403 - ForbiddenThe user does not have permission to perform the requested action.
404 - Not FoundThe requested resource doesn't exist.
500, 502, 503, 504 - Server ErrorsThese are rare errors when something's wrong on The Fount's end.

Response

{
"data": {
"message": "Human readable error message."
}
}