Error Handling Guide
Understand UAPI's standardized error model, retry strategy guidance, and recommended handling patterns to build resilient applications.
You no longer need to handle this manually. Use our official SDK, which automatically checks HTTP status codes, parses error responses, and throws a unified exception object.
Go
Python
TypeScript
Java
C++
PHP
C#
Browser
Rust
The following shows feature support for each language SDK:
| Language | Automatic error handling | Type hints | Automatic retry |
|---|---|---|---|
Go | |||
Python | |||
TypeScript | |||
Java | |||
C++ | |||
PHP | |||
C# | |||
Browser | |||
Rust |
| Error Code | HTTP | Description |
|---|---|---|
INVALID_ARGUMENT | 400 | Invalid request parameters |
UNAUTHORIZED | 401 | Invalid API key |
FORBIDDEN | 403 | Access denied |
NOT_FOUND | 404 | Resource not found |
RATE_LIMIT_EXCEEDED | 429 | Rate limit exceeded |
INTERNAL_ERROR | 500 | Server error |