THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
module documentation
Render the framework default HTTP error and status responses.
| Class | |
Render the framework default HTTP error and status responses. |
| Function | _status |
Return the display label for a validated HTTP status. |
| Function | _validate |
Validate an HTTP status before either response format is rendered. |
| Constant | _FRAMEWORK |
Framework version used by responses. |
| Constant | _LOCALE |
app.locale. |
| Constant | _MAX |
Max status code value used by responses. |
| Constant | _MIN |
Min status code value used by responses. |
| Constant | _PYTHON |
Python version used by responses. |
| Constant | _STATUS |
Human-readable labels for validated HTTP status codes. |
Validate an HTTP status before either response format is rendered.
| Parameters | |
statusint | orionis.http.enums.HTTPStatus | HTTP status supplied to the default error response. |
| Returns | |
int | Validated status, converting an HTTPStatus member to its value. |
| Raises | |
TypeError | If status_code is not an integer. |
ValueError | If status_code is outside the range 100 to 599. |