@yihangho/http_status
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

HTTP Status

Provides semantic aliases to HTTP status codes.

Example

import * as HTTP_STATUS from '@yihangho/http_status';

const handler = async (event) => {
  return {
    status: HTTP_STATUS.OK,
    body: 'Everything is a-ok!'
  };
};

Source

The relevant HTTP status codes are taken from the IANA HTTP Status Code Registry.

Readme

Keywords

Package Sidebar

Install

npm i @yihangho/http_status

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

6.83 kB

Total Files

7

Last publish

Collaborators

  • yihangho