API Responses
Responses
The Surfe API utilizes standard HTTP status codes on its responses to reflect the result of API requests, whether they are successful or encounter errors.
All responses are sent as JSON objects.
Successful responses
A successful request is accompanied by a 20X status code that confirms the operation was completed as expected.
Code | Status | Description |
---|---|---|
200 | OK | The request succeeded and a result is returned |
202 | Accepted | The request was received successfully and an asynchronous process has started to handle the request. The response includes the information to fetch the results from this process |
Error responses
In case of errors, the API responds with 4XX or 5XX status codes:
Code | Status | Description |
---|---|---|
400 | Bad Request | The request is invalid or malformed |
401 | Unauthorized | The API Key is missing or invalid |
403 | Forbidden | The API Key is valid, but the user does not have a license |
404 | Not Found | The requested record cannot be found |
429 | Too Many Requests | The rate limit has been exceeded |
500 | Internal Server Error | There was an unrecoverable error on the server |
All error responses include the a JSON body with the following format: