$ npm install @ky-y./status-text
$ yarn add @ky-y./status-text
- Not
@ky-y/status-text
But@ky-y./status-text
. - Support TypeScript
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"
MIT License
- 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)