Get HTTP-status name by code.
From the same directory as your project's package.json, install this package with the following command:
npm install http-status-name --save-dev
httpStatusName = require("http-status-name")
httpStatusName('200')
// "OK"
httpStatusName('404')
// "Not_Found"
httpStatusName('500')
// "Internal_Server_Error"
Try it out yourself.
Found a 🪲? Have a feature request? Please create an Issue.
Pull requests are also encouraged, and if you find this project useful please consider ⭐-ing it to show your support!
Thank you!
Copyright (c) 2016 Alecia Bester, contributors. Released under the MIT license