ArmorError.
Exception Hierarchy
Import Exceptions
Exception Types
ArmorError
Base exception for all SDK errors.AuthenticationError
Raised when authentication fails (401).- Invalid API key
- Expired or revoked key
- Missing
Authorizationheader
AuthorizationError
Raised when authorization fails (403). The API key is valid but lacks permissions.- Using
read-onlykey for write operations - Using
read-writekey for admin operations
NotFoundError
Raised when a resource doesn’t exist (404).ValidationError
Raised when request parameters are invalid (422).RateLimitError
Raised when rate limit is exceeded (429).ServerError
Raised for server-side errors (5xx).StalenessError
Raised byrequire_fresh() when data is stale. This is a data quality exception, not an API error.
