Socket
Socket
Sign inDemoInstall

http-error-lib

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    http-error-lib

"HTTP error library"


Version published
Maintainers
1
Install size
2.11 kB
Created

Readme

Source

http-error-lib

NPM version Downloads

About

Node module to throw custom Error.

Installation

npm install http-error-lib

Exampleß

const { NotFound } = require("http-error-lib");
...
throw new NotFound();

Methods

  • BadRequest
  • Unauthorized
  • Forbidden
  • NotFound
  • Conflict
  • FailedDependency
  • InternalServerError

FAQs

Last updated on 08 Oct 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc