Gathering detailed insights and metrics for easy-http-errors
Gathering detailed insights and metrics for easy-http-errors
Gathering detailed insights and metrics for easy-http-errors
Gathering detailed insights and metrics for easy-http-errors
http-errors
Create HTTP error objects
@types/http-errors
TypeScript definitions for http-errors
nodemailer
Easy as cake e-mail sending from your Node.js applications
@soda/friendly-errors-webpack-plugin
Recognizes certain classes of webpack errors and cleans, aggregates and prioritizes them to provide a better Developer Experience
npm install easy-http-errors
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
3 Stars
21 Commits
1 Forks
4 Watching
1 Branches
11 Contributors
Updated on 24 Aug 2021
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
2,423.7%
959
Compared to previous day
Last week
141.7%
3,490
Compared to previous week
Last month
163.4%
5,935
Compared to previous month
Last year
137.1%
17,386
Compared to previous year
1
A preset of HTTP errors that can be easily used to throw errors in your applications.
1npm i easy-http-errors --save
1yarn add easy-http-errors
1// ES6 import.
2import { BadRequestError } from 'easy-http-errors';
3
4// Throw the default bad request.
5throw new BadRequestError();
6
7// Throw a bad request with a custom message and properties.
8throw new BadRequestError('Ups, this is a bad request', { foo: 'bar' });
Status Code | Name |
---|---|
400 | BadRequestError |
401 | UnauthorizedError |
402 | PaymentRequiredError |
403 | ForbiddenError |
404 | NotFoundError |
405 | MethodNotAllowedError |
406 | NotAcceptableError |
407 | ProxyAuthenticationRequiredError |
408 | RequestTimeoutError |
409 | ConflictError |
410 | GoneError |
411 | LengthRequiredError |
412 | PreconditionFailedError |
413 | PayloadTooLargeError |
414 | URITooLongError |
415 | UnsupportedMediaTypeError |
416 | RangeNotSatisfiableError |
417 | ExpectationFailedError |
418 | ImATeapotError |
421 | MisdirectedRequestError |
422 | UnprocessableEntityError |
423 | LockedError |
424 | FailedDependencyError |
425 | UnorderedCollectionError |
426 | UpgradeRequiredError |
428 | PreconditionRequiredError |
429 | TooManyRequestsError |
431 | RequestHeaderFieldsTooLargeError |
451 | UnavailableForLegalReasonsError |
500 | InternalServerError |
501 | NotImplementedError |
502 | BadGatewayError |
503 | ServiceUnavailableError |
504 | GatewayTimeoutError |
505 | HTTPVersionNotSupportedError |
506 | VariantAlsoNegotiatesError |
507 | InsufficientStorageError |
508 | LoopDetectedError |
509 | BandwidthLimitExceededError |
510 | NotExtendedError |
511 | NetworkAuthenticationRequiredError |
Run the tests from the root directory:
1npm test
Found a bug or want to suggest something? Take a look first on the current and closed issues. If it is something new, please submit an issue.
It will be awesome if you can help us evolve easy-http-errors
. Want to help?
npm install
.npm test
.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/15 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
63 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More