New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

stts

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stts

An npm package to quickly look up status code names

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
0
Created
Source

stts logo

STTS is a quick, completely offline reference for HTTP status codes.

Screenshot

Status Code Reference Tool

Installation

Install stts globally to use it in your terminal no matter where you are in your folder structure.

npm i -g stts

Usage

stts <statusCode>
# eg: stts 409

List all status codes and summaries

Use the -l or -list flag to list all status codes along with a short description. You don't need to use a status code here.

Usage:

stts -l

# `stts -list` will also have the same behaviour

Note: This uses node --print "http.STATUS_CODES" behind the scenes.

Plan text mode

Include a -t argument to get the output in plan text. This is useful if you'd want to pipe the output to clipboard.

stts <statusCode> -t
# eg: stts 301 -t

Status Code Data

All the reference text is from https://httpstatuses.com/. Thanks to Runscope for sponsoring it.

How to

I wrote a quick how-to about how I made stts: https://nikhilvijayan.com/http-status-code-checker.

Keywords

status

FAQs

Package last updated on 18 Dec 2024

Did you know?

Socket

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.

Install

Related posts