> For the complete documentation index, see [llms.txt](https://docs.layerlens.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.layerlens.ai/more-in-this-section-9/error-codes.md).

# Error Codes Reference

SDK error codes — full StratixError exception hierarchy and HTTP status mapping.

This reference guide provides detailed information about all error codes and exceptions in the LayerLens Python SDK.

## Exception Hierarchy

```
StratixError (Base exception)
├── APIError (Base for API-related errors)
│ ├── APIConnectionError (Network/connection issues)
│ │ └── APITimeoutError (Request timeouts)
│ ├── APIResponseValidationError (Invalid response format)
│ └── APIStatusError (HTTP status errors)
│ ├── BadRequestError (400)
│ ├── AuthenticationError (401)
│ ├── PermissionDeniedError (403)
│ ├── NotFoundError (404)
│ ├── ConflictError (409)
│ ├── UnprocessableEntityError (422)
│ ├── RateLimitError (429)
│ └── InternalServerError (500+)
```

## See Also

* [Errors resource reference](/more-in-this-section-9/errors-1.md) — code examples for each exception class
* [Authentication troubleshooting](/more-in-this-section-9/authentication-1.md)
* [Common issues](/more-in-this-section-9/common-issues.md)
