
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@http-util/status-i18n
Advanced tools
HTTP status and message mapping, internationalized.
Currently supported locales: de-de
, en-us
, ja-jp
, ko-kr
, zh-cn
. Add your locale like this now! 🎉
$ npm install @http-util/status-i18n
import status from '@http-util/status-i18n'
// or
var status = require('@http-util/status-i18n')
Returns a lowercase string of default browser language set by user.
Returns an array of all the status codes as Integer
s.
Map of code
to status message
, in the same format as the Node.js http module. undefined
for invalid code
s. The language has been set to default en-us
.
status[404] // => 'Not Found'
status[700] // => undefined
Map of code
to status message
with specific language. The default browser language is assumed to be en-us
.
status(401, 'zh-cn') // => '无权限'
status(401, 'zh-CN') // => '无权限'
status(401, 'zh') // => '无权限'
status(401, status.BROWSER_LANG) // => 'Unauthorized'
status(401) // => 'Unauthorized'
FAQs
Make HTTP status message support i18n
We found that @http-util/status-i18n demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.