@yihangho/http_status
v1.0.0
Published
Provides semantic aliases to HTTP status codes.
Readme
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.
