
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
status-codes-found
Advanced tools
HTTP status code constants from mdn and Node.js http status codes.
Types included.
npm install status-codes-found
import { StatusCodes } from 'status-codes-found';
// For shorter typing
import { StatusCodes as SC } from 'status-codes-found';
/****info codes****/
const infoCode = StatusCodes.info.CONTINUE;
// => infoCode = 100
/****success codes****/
const successCode = StatusCodes.success.OK;
// => sucessCode = 200
/****redirect codes****/
const redirectCode = StatusCodes.redirect.MOVED_PERMANENTLY;
// => redirectCode = 301
/****client error codes****/
const clientErrorCode = StatusCodes.error.client.BAD_REQUEST;
// => clientErrorCode = 400
/***server error codes****/
const serverErrorCode = StatusCodes.error.server.INTERNAL_SERVER_ERROR;
// => serverErrorCode = 500
const statusText = StatusCodes.statusText(400);
// => statusText = 'Bad Request'
// mapped from Node.js http.STATUS_CODES
Status codes from (except 509): https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
509 Bandwith Limit Exceeded added to match nodejs http.STATUS_CODES https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#:~:text=509%20Bandwidth%20Limit,of%20customers.%5B75%5D
FAQs
HTTP status code constants from mdn and Node.js http status codes.
We found that status-codes-found demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.