Skip to content

yihangho/http_status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Provides semantic aliases to HTTP status codes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published