Giter Site home page Giter Site logo

hssp's Introduction

hssp

hssp for Http StatuS where the two capitals S replace the two ts of http.

Why?

This CLI is here to help you find/remember the meaning of an http status code.

Historically speaking, this tool was written after struggling with my memory to find the meaning of a code. Some tools already exist but installing Node.js is too much for me...

Installation

From source

To install hssp, first you need to install the dependencies:

  • Arch Linux
pacman -S go make

Then, run:

make build
make install

Quick start

Code

$ hssp code --help
This command displays the given http code description 
with its corresponding class and its RFC.

Usage:
  hssp code [flags]

Flags:
  -h, --help   help for code

Meaning of 204

$ hssp code 204
+------+------------+-------------+---------+
| CODE |   CLASS    | DESCRIPTION |   RFC   |
+------+------------+-------------+---------+
|  204 | Successful | No Content  | RFC7231 |
+------+------------+-------------+---------+

Class

$ hssp class --help
This command displays the list of http status codes corresponding
to the given class number (1,2,3,4,5).

Usage:
  hssp class [flags]

Flags:
  -h, --help   help for class

List of status codes for the Successful class

$ hssp class 2
+------+------------+-------------------------------+---------+
| CODE |   CLASS    |          DESCRIPTION          |   RFC   |
+------+------------+-------------------------------+---------+
|  200 | Successful | OK                            | RFC7231 |
|  201 | Successful | Created                       | RFC7231 |
|  202 | Successful | Accepted                      | RFC7231 |
|  203 | Successful | Non-Authoritative Information | RFC7231 |
|  204 | Successful | No Content                    | RFC7231 |
|  205 | Successful | Reset Content                 | RFC7231 |
|  206 | Successful | Partial Content               | RFC7231 |
|  207 | Successful | Multi-Status                  | RFC4918 |
|  208 | Successful | Already Reported              | RFC5842 |
|  226 | Successful | IM Used                       | RFC3229 |
+------+------------+-------------------------------+---------+

Contribution

No other words than "Welcome guys" :)

hssp's People

Contributors

afh avatar andregce avatar sterchelen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.