Skip to main content

A very minimal http-status-message to http-status-code package.

Project description

httpcodes

Http codes is a minimal package the literally maps the status-message to a status-code. The only use-case of this package is to increase readability in your code.

Installing

Install and update using pip:

pip install -U httpcodes

A Simple Example

import httpcodes

print(httpcodes.OK)
print(httpcodes.NOT_FOUND)
print(httpcodes.IM_A_TEAPOT)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httpcodes-1.0.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

httpcodes-1.0.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page