/http_status

Provides semantic aliases to HTTP status codes.

Primary LanguageTypeScriptMIT LicenseMIT

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.