
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
http-status-message
Advanced tools
A utility for generating user-friendly messages based on HTTP status codes and message tone.
http-status-message is an npm package that provides a collection of status code messages tailored for various tones, suitable for displaying in web applications, APIs, or any other software that communicates HTTP status codes to users.
You can install http-status-message using npm:
npm install http-status-message
const { getStatusMessage } = require('http-status-message');
// or
import { getStatusMessage } from 'http-status-message'; // ES6 import syntax
// Get a formal message along with corresponding emoji for status code 404
const message = getStatusMessage(404, 'formal');
console.log(message);
Returns an object containing a message string and an emoji corresponding to the given HTTP status code and tone.
statusCode (number): The HTTP status code (e.g., 200, 404, 500).messageTone (string): The tone of the message.
formal, informal, straightforward, technical, funny, empathetic, educational, short.(all lower case)
Contributions are welcome! If you have suggestions for improvements, new features, or encounter any issues, please open an issue or submit a pull request.
This project is licensed under the MIT License.
FAQs
A utility for generating user-friendly messages based on HTTP status codes and message tone.
The npm package http-status-message receives a total of 545 weekly downloads. As such, http-status-message popularity was classified as not popular.
We found that http-status-message demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.