Hubstream uses HTTP status codes to indicate success or failure of API calls. Status codes 2xx indicate success, 4xx indicate an error in the information provided, and 5xx indicate server-side errors.
HTTP Status Codes
| Code | Meaning |
|---|---|
| 200 | OK |
| 201 | Created |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden (Unauthorized access) |
| 405 | Method Not Allowed (Method called is not supported for the API invoked) |
| 429 | Too Many Requests |
| 500 | Internal Error |
| 501 | Not Supported |
Common Error Responses
In addition to standard HTTP status codes, the API may return the following application-specific error responses.
URL_RULE_NOT_CONFIGURED — 400
-
Please check if the URL you are trying to access is correct.
-
Resolution: The request URL specified is incorrect. Specify a valid request URL.
INVALID_METHOD — 400
-
The HTTP request method type is not a valid one.
-
Resolution: You have specified an invalid HTTP method to access the API URL. Specify a valid request method.
INVALID_PARAMETER_VALUE — 400
-
The HTTP request specified has an invalid parameter value.
-
Resolution: The request URL input parameter value specified is incorrect. Specify a valid request input parameter value.
INTERNAL_SERVER_ERROR — 500
Server encountered an unexpected error.
Resolution: Contact support.hubstreamonline.com.