{"library":"http-smart-error","type":"library","category":null,"description":"Provides a subclass of SmartError for HTTP errors with status codes, messages, codes, and extra fields. Current stable version 4.0.1 (released 2021 or earlier). Low release cadence. Differentiator: built-in mapping of HTTP status codes to messages (e.g., 400 → 'Bad request') and support for custom error codes and extra data. Requires peer smart-error ^3.0.0.","language":"javascript","status":"active","version":"4.0.1","tags":["javascript","error","http","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install http-smart-error","imports":["import HttpSmartError from 'http-smart-error'","HttpSmartError.create(code, message, codeString, extra)"]},{"cmd":"yarn add http-smart-error","imports":[]},{"cmd":"pnpm add http-smart-error","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"http-smart-error","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}