@ky-y./status-text
v1.0.6
Published
## Install
Downloads
2
Readme
@ky-y./status-text
Install
$ npm install @ky-y./status-text
$ yarn add @ky-y./status-text
- Not
@ky-y/status-text
But@ky-y./status-text
. - Support TypeScript
Usage
import { HTTP200, HTTP405 } from "@ky-y./status-text";
console.log(HTTP200); // => "OK"
console.log(HTTP405); // => "Method Not Allowed"
import { statusText } from "@ky-y./status-text";
console.log(statusText(200)); // => "OK"
console.log(statusText(405)); // => "Method Not Allowed"
console.log(statusText(999)); // => "Unknown Status"
License
MIT License
Acknowledgments
- RFC 7231 - Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
- RFC 2295 - Transparent Content Negotiation in HTTP
- RFC 3229 - Delta encoding in HTTP
- RFC 6585 - Additional HTTP Status Codes
- RFC 7725 - An HTTP Status Code to Report Legal Obstacles
- RFC 8470 - Using Early Data in HTTP
- RFC 4918 - HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)
- RFC 5842 - Binding Extensions to Web Distributed Authoring and Versioning (WebDAV)