easy-http-code
v1.1.4
Published
## Sumary Builded to make easier HTTP codes use.
Downloads
5
Readme
easy-http-code
Sumary
Builded to make easier HTTP codes use.
Javascript
const { HttpStatus, HttpMessage } = require('easy-http-code');
Typescript
import { HttpStatus, HttpMessage } from 'easy-http-code';
Example
import express from 'express';
import { HttpStatus } from 'easy-http-code';
const server = express();
server.get('/endpointOK', (req, res) => {
res.send(HttpStatus.OK);
});
server.listen(3333);
import { HttpMessage } from 'easy-http-code';
console.log(HttpMessage(200));