1.0.2 • Published 9 years ago
http-code-parser v1.0.2
HTTP Code Parser
NPM module to parse HTTP status codes into something more useable.
https://www.npmjs.com/package/http-code-parser
Install
npm install http-code-parser
Usage
Running:
var http_code_parser = require('http-code-parser');
var Status = http_code_parser.parse(201);
Results in:
{
success: true,
error: false,
redirect: false,
friendly: 'Created',
code: 201,
type: "success"
}