API Errors and HTTP Status Code Details
The VAS Developer API uses conventional HTTP response codes to indicate the success or failure of an API request. In general, status codes in the 2xx
range indicate success, and codes in the 4xx
range indicate an error. 5xx
error codes are rare and indicate a server error.
Reference the following for more information on potential status codes or errors:
Status Code/Error | Description |
---|---|
200 OK
|
Standard response for a successful HTTP request. |
201 Created
|
A |
202 Accepted
|
The server accepted the request and will execute it at a later point. |
204 No Content
|
The server successfully executed the method but returns no response body. |
400 Bad Request
|
Bad request. Depending on the endpoint, additional error details may be sent in the response. Use the strategies below to troubleshoot the error:
NOTE: The resource URI is case-sensitive. If you are encountering unexpected 400 errors, check your URI for correct capitalization of resource names.
|
401 Unauthorized
|
Authentication failed due to invalid authentication credentials. |
403 Forbidden
|
You are not permitted to access this resource. |
404 Not Found
|
The resource could not be found. It is possible that the resource has been moved or deleted, or that there is a typo in your request. |
405 Method Not Allowed
|
The requested method and resource are not compatible. |
423 Locked
|
The dairy is temporarily locked due to a database reload. This error will continue until the process completes, usually within an hour, depending on the herd size and server traffic. |
429 Limit Exceeded
|
You exceeded the number of requests you can make per day. |
429 Too Many Requests
|
You exceeded the number of requests you can make per second. |
500 Internal Server Error
|
A VAS server error has occurred and the request cannot be fulfilled. |
502 Bad Gateway
|
The server did not receive a timely response from another server. |
503 Service Unavailable
|
The server is not available, usually due to overloading or maintenance issues. |
504 Gateway Timeout
|
The server, while acting as a gateway or proxy, cannot get a response in time. |