httpexceptor 1.4.0
pip install httpexceptor
Latest version
Released:
WSGI middleware to handle HTTP responses using exceptions
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (LICENSE)
- Author: FND
Classifiers
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
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')
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (LICENSE)
- Author: FND
Classifiers
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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.4.0.tar.gz
.
File metadata
- Download URL: httpexceptor-1.4.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e90496b6dca251edfebccd4ba9dc6826b83a3033ae37d72f86e7ef039e267836 |
|
MD5 | 86f41e39da575ab97462bd78287bff62 |
|
BLAKE2b-256 | ec353968e0c7f5d789dfd38609ff669ccc903f46cd971ce825a2f2a0bd0daa42 |