Status codes
GSMtasks uses conventional HTTP response codes to indicate 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 resulted from the provided information (e.g. a required parameter was missing, a charge failed, etc.), and codes in the 5xx range indicate an error with GSMtasks's servers.
Status code | Status text | Description |
---|---|---|
200 | OK | Everything worked as expected. |
400 | Bad Request | Often missing a required parameter. |
401 | Unauthorized | No valid API key provided. |
402 | Request Failed | Parameters were valid but request failed. |
404 | Not Found | The requested item doesn't exist. |
406 | Not Acceptable | Unable to fulfill criteria from the request Accept header, check details in response body. |
429 | Too Many Requests | Too many requests hit the API too quickly. |
50* | Server Errors | Something went wrong on our end. |