1.0.0 • Published 5 years ago
@yihangho/http_status v1.0.0
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.
1.0.0
5 years ago