HTTP status codes

Last Yard uses conventional HTTP response codes to indicate the success or failure of an API request. Here we have compiled a list of common HTTP status codes that you may encounter.

200 - OK

The request has succeeded. Everything is working as it should be.

400 - Bad Request

The server cannot or will not process the request due to something that is perceived to be a client error. This may be something such as missing a required parameter.

401 - Unauthorized

The request has not succeeded because it lacks valid authentication credentials. For example, a valid API key was not provided.

402 - Request Failed

The parameters were valid but the request failed

403 - Forbidden

The server understood the request but refuses to authorize it. This may be that the API key does not have permissions to perform the request.

404 - Not Found

The requested resource does not exist

409 - Conflict

The request is conflicting with another request. For example, when uploading a file which is older than the one already on the server resulting in a version control conflict.

429 - Too Many Requests

The user has sent too many requests in a given amount of time. Take a breath and count to ten.

500, 502, 503, 504 - Server Errors

Something went wrong on Last Yard's end.