Response status codes
In response to any request, SpeechKit returns a message containing the request processing code and status. If there is an error processing the request, the message will also include its possible cause.
When analyzing model responses in your application, refer to the request code and status. Error messages contain useful information but may change after you update the service.
| gRPC | REST | Status | Cause | Resolution |
|---|---|---|---|---|
| 0 | 200 | OK |
Operation completed | ā |
| 3 | 400 | INVALID_ARGUMENT |
Invalid request | Check the request format. The URI or request parameters may be incorrect. |
| 4 | 504 | DEADLINE_EXCEEDED |
Request timed out | There is a network issue between the client and the server. Try again or contact support. |
| 7 | 403 | PERMISSION_DENIED |
Not enough permissions | Make sure the service account you are using to send your request has the required roles. |
| 8 | 429 | RESOURCE_EXHAUSTED |
Quota exceeded | Depending on your quota, wait or contact support to increase your quota. |
| 12 | 501 | UNIMPLEMENTED |
Service-side issue | Contact support. |
| 13 | 500 | INTERNAL |
Internal service error | Contact support. |
| 14 | 503 | UNAVAILABLE |
Service unavailable | Try again or contact support. |
| 16 | 401 | UNAUTHENTICATED |
Authorization error | Check that you are using the correct account, API key, and IAM token, and that the token has not expired. |