GithubHelp home page GithubHelp logo

httpstatuscode's Introduction

HTTPStatusCode

Ever wondered what that nasty HTTP statuscode you just got back means? Tired of looking it up every single time? Look no further. HTTPStatusCode is a simple program that lets you look this up inside the terminal. The code descriptions are retrieved from https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

Installation

Linux

Clone the repository into desired folder

git clone https://github.com/eidsheim98/HTTPStatusCode.git

After this, change directory into HTTPStatusCode folder

cd HTTPStatusCode

The last step is to run the setup.py file

python3 setup.py

If no errors are encountered, you are good to go!

Windows

Start by cloning this repository into a desired folder. To run the program from anywhere in the terminal, I would recommend creating a specific folder i an easy-to-remember location you would not need administrative rights to edit. This could for instance be in a folder called

C:/Users/{username}/.cmd

Go into this directory using the command

cd C:/Users/{username}/.cmd

Then run the command for cloning the repository

git clone https://github.com/eidsheim98/HTTPStatusCode.git

Next, add this folder to path, to be able to run the file from anywhere on the computer. This line has to be run as administrator

set PATH=%PATH%;C:/Users/{username}/.cmd

After this, change directory into HTTPStatusCode

cd HTTPStatusCode

The last step is to run the setup.py file

python setup.py

If no errors are encountered, you are good to go!

Usage

You run the script by typing

hs {statuscode}

That means that if the code you got is 404, you should write

hs 404

And that should give you this information:

Statuscode:     404
Message:        Not Found
Type:           Client Error Message
Description:    The server can not find the requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 Forbidden to hide the existence of a resource from an unauthorized client. This response code is probably the most well known due to its frequent occurrence on the web.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

httpstatuscode's People

Contributors

eidsheim98 avatar

Watchers

 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.