Provides semantic aliases to HTTP status codes.
import * as HTTP_STATUS from '@yihangho/http_status';
const handler = async (event) => {
return {
status: HTTP_STATUS.OK,
body: 'Everything is a-ok!'
};
};
The relevant HTTP status codes are taken from the IANA HTTP Status Code Registry.