WSGI middleware to handle HTTP responses using exceptions
provides a group of exception classes representing non-2xx HTTP statuses, along with a WSGI middleware to turn the exceptions into proper HTTP headers
originally extracted from TiddlyWeb
source repository: https://github.com/tiddlyweb/httpexceptor
Usage
from httpexceptor import HTTPExceptor, HTTP404
# register middleware
app = HTTPExceptor(app)
# ...
if unavailable:
raise HTTP404('resource unavailable')
Metadata
Release files for httpexceptor 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| httpexceptor-1.4.0.tar.gz | 4.0 kB | Without provenance | Details |
Release files / httpexceptor-1.4.0.tar.gz
| Download URL | httpexceptor-1.4.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e90496b6dca251edfebccd4ba9dc6826b83a3033ae37d72f86e7ef039e267836
|
|
BLAKE2b-256 checksum How to use checksums |
ec353968e0c7f5d789dfd38609ff669ccc903f46cd971ce825a2f2a0bd0daa42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for httpexceptor 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.