{"library":"http-status-response-codes","type":"library","category":null,"description":"The `http-status-response-codes` package (current version 1.0.2) provides a JavaScript utility for handling HTTP status codes, drawing inspiration from Java's Spring Boot framework. It exports an `HttpStatus` class that can be instantiated with a numeric status code (as a string) or a response-like object containing a `status` property. Instances of `HttpStatus` offer methods to categorize the status code (e.g., `is2xxSuccessful()`, `is4xxClientError()`, `isError()`, `is1xxInformational()`, `is3xxRedirection()`, `is5xxServerError()`), and retrieve its name, code value, and description. Additionally, the package exports a `statusCodes` object, providing a convenient enum-like collection of standard HTTP status codes. This library facilitates programmatic handling and classification of HTTP responses in a structured manner. Given its version and CommonJS-centric examples, the package appears to be stable and feature-complete, but not actively undergoing modern JavaScript evolution.","language":"javascript","status":"maintenance","version":"1.0.2","tags":["javascript","http","nodejs","statuscode"],"last_verified":"Wed May 27","install":[{"cmd":"npm install http-status-response-codes","imports":["const HttpStatus = require('http-status-response-codes');","const { statusCodes } = require('http-status-response-codes');","const httpStatus = new HttpStatus('200'); httpStatus.is2xxSuccessful();"]},{"cmd":"yarn add http-status-response-codes","imports":[]},{"cmd":"pnpm add http-status-response-codes","imports":[]}],"homepage":null,"github":"https://github.com/KaustubhKhati/http-status-codes","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/http-status-response-codes","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/http-status-response-codes/compatibility"}}