httpexceptor 1.2.0
pip install httpexceptor==1.2.0
Newer version available (1.4.0)
Released:
WSGI middleware to handle HTTP responses using exceptions
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: LICENSE
- Author: FND
Project description
httpexceptor
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
Usage
from httpexceptor import HTTPExceptor, HTTP404 # register middleware app = HTTPExceptor(app) # ... if unavailable: raise HTTP404('resource unavailable')
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: LICENSE
- Author: FND
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file httpexceptor-1.2.0.tar.gz
.
File metadata
- Download URL: httpexceptor-1.2.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 785bf2a0bb2535d727cb43dc59bf2220f8c3f91d563ac1b7db6031c8bcc0647e |
|
MD5 | a44372a5c71eab0599a7ef8456511fc3 |
|
BLAKE2b-256 | d196e9a60b05208d2aa17294e11d0125dde69e60f324b9744c2c1a7bbf11cb5e |