@xpring-eng/http-status
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    @xpring-eng/http-status

    A TypeScript enum for HTTP status codes.

    Usage

    This enum was designed to remove "magic numbers" of HTTP status codes from our codebases. Instead, you can access a human-readable alias for any numeric HTTP status code using HttpStatus.Status.

    import HttpStatus from '@xpring-eng/http-status'
     
    console.log(HttpStatus.NotFound) // Logs 404

    Status Codes

    All official HTTP status codes are included, as well as popular status codes used by NGINX, Microsoft, Twitter, etc.

    Install

    npm i @xpring-eng/http-status

    DownloadsWeekly Downloads

    53

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    27.4 kB

    Total Files

    8

    Last publish

    Collaborators

    • petewebb
    • ianxpring
    • inthecloud247
    • flowhamster