
Security News
GitHub Actions Adds cache-mode to Limit Cache Poisoning Risk
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.
error-status-helper
Advanced tools
Extends node.js response middleware with status codes helper methods.
Extends express response middleware with status codes helper methods.
$ npm install error-status-helper
javascript
var express = require('express');
var errorStatus = require('error-status-helper');
errorStatus(express);
var app = express();
// catch 404 and forward to error handler
app.use(statusHelper.notFoundMiddleware);
// error handler
app.use(statusHelper.errorMiddleware);
Using sendData packaging return values only available in express
register: (req, res, next) => {
const body = req.body;
return new promise((resolve, reject) => {
if (body.user && body.password && body.phone) {
return resolve(body);
}
else {
return reject(errorStatus.Parameter_Error);
}
}).then(data => {
return userInfoModule.register(body);
}).then(data => {
res.sendData(data);
}).catch(err => {
next(err, req, res);
});
}
Using extendStatus extended state information
errorStatus.extendStatus('User_Has_Registered', {code: 202, statusCode: 202001, message: "The user has been registered"});
FAQs
Extends node.js response middleware with status codes helper methods.
The npm package error-status-helper receives a total of 0 weekly downloads. As such, error-status-helper popularity was classified as not popular.
We found that error-status-helper 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.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.