200 OK | / | Request successful. | / |
400 Bad Request | - Invalid settings.
- Invalid 'channel' format.
- Streaming key exists in region:na.
| Request parameter error. | Troubleshoot based on the specific content of the message field. |
401 Unauthorized | Invalid authentication credentials. | RESTful API authentication has failed. | Retry HTTP basic or HMAC authentication. |
403 Forbidden | - Media Gateway is not enabled for this project. Contact us to enable.
- Stream does not belong to this app ID.
| - The Media Gateway service has not been activated.
- The queried streaming key does not belong to the corresponding app ID.
| - Contact technical support to activate the service.
- Check if the passed in streaming key and app ID match.
|
404 Not Found | Resource not found and destroyed. | The requested resource does not exist. | Check whether the passed in streaming key is correct. |
409 Conflict | Resource with the same name already exists. | Too many concurrent requests. | Use a back-off strategy and try again. For example, wait for 1 second before trying again for the first time, then wait for 3 seconds to try for the second time, and 6 seconds for the third. |
429 Too Many Requests | - Request rate limit exceeded.
- Resources quota limit exceeded.
- No available resources.
| Internal server error. | Use a back-off strategy and try again. For example, wait for 1 second before trying again for the first time, then wait for 3 seconds to try for the second time, and 6 seconds for the third. |
500 Unknown | Internal error. Contact us to help fix it. | Internal server error. | Use a back-off strategy and try again. For example, wait for 1 second before trying again for the first time, then wait for 3 seconds to try for the second time, and 6 seconds for the third. |
503 Service Unavailable | - Service overload. Retry with the back-off strategy and contact us to fix it.
- Service unavailable temporarily. Retry with the back-off strategy.
| Internal server error. | Use a back-off strategy and try again. For example, wait for 1 second before trying again for the first time, then wait for 3 seconds to try for the second time, and 6 seconds for the third. |
504 Gateway Timeout | Gateway timeout. Query to check whether the player has been created, or to create another one instead. | Internal server error. | Use a backoff strategy and try again. For example, wait for 1 second before trying again for the first time, then wait for 3 seconds to try for the second time, and 6 seconds for the third. |