New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ash-framework/http-error

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ash-framework/http-error

Class for throwing http specific errors

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-84.62%
Maintainers
1
Weekly downloads
 
Created
Source

@ash-framework/http-error

The Media Suite

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status

Class for throwing http specific errors

Install

NPM

  • Install: npm install --save @ash-framework/http-error
  • Module: require('@ash-framework/http-error')

Usage

Api

new HttpError(code, message)

With status code but no message

const error = new HttpError(404)

error.status // 404
error.message // 'Not Found'
error.name // 'HttpError'
error.stack // will output stack trace

With status code and custom message

const error = new HttpError(404, 'custom error message')

error.status // 404
error.message // 'custom error message'
error.name // 'HttpError'
error.stack // will output stack trace

History

Discover the release history by heading on over to the releases page.

Backers

Maintainers

These amazing people are maintaining this project:

  • Richard Walker digitalsadhu@gmail.com

Sponsors

These amazing people have contributed finances to this project:

Become a sponsor!

Contributors

These amazing people have contributed code to this project:

License

Unless stated otherwise all works are:

and licensed under:

Keywords

FAQs

Package last updated on 18 Oct 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc