

Whats my HTTP Status Code
source link: https://www.tuicool.com/articles/viQJniy
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Whats my HTTP Status Code - Visit
A UI Based interface to guide you to exact web api - http specification status your server should return for any web request.
Introduction
This projects helps you choose appropriate HTTP status code for your web APIs. Based on series of questions, it lets arrive to a appropriate HTTP status code (with reason). In short, it makes choosing HTTP code much easier.
Concepts
Usage
Answer a series of question regarding your current implementation or problem that you have with the API, starting off with selection of HTTP code series, like 200 series (success) or 500 series (server error). Once you have correctly identified you HTTp status series, you can answer few more questions to get to exact HTTP status code.
Why should any developer use it?
There can be a confusion regarding what exact HTTP status code should be for a particular scenario, for eg, should it be 404 Not Found
or 204 No Content
in scenarios where resource exist but has no information. Or should one give 403 Forbidden
for access denied resource and let the user know about existence of the resource (security) or should say 404 Not Found
.
For whom is this tool meant for?
This is meant for Restful APIs and system that want to follow standard HTTP status code. One should consider following a specification for better usability across system, providing APIs to third party, disconnecting WEB API server with frontend to understand API response, or simply move ahead with just 200 OK
status across the system with actual reason in body { "status": "failure" }
Inspiration
Inspired by the awesome work on HTTP status code selection by Michael Kropat - Codetinkerer.com
Development
To add more features or fix a thing or two, to this project, you need to make sure you have all the requirements checked, this project installed, and a little understanding of this project.
Requirement
You need to be at least familiar with the following tools and languages:
- HTML/CSS 3/JavaScript
- React/Redux/React-Router
- JSON
Installation
You can now install the project and start developing. To do so, just follow these steps:
- Fork this project.
- Clone your fork git clone
- Branch out git branch -b NEW-BRANCH
- Make your changes.
- Create a pull request.
To run this project locally, perform following steps
-
Install packages via
npm install
oryarn
, this will install all the dependencies required by the project -
To start development on local machine, run
npm start
on terminal.
P.S This project is created from ejected create-react-app
.
Contribution
One can contribute to this project in following ways,
Development
This project can be improved so much more, with new features and design. Code refactoring is also welcomed. If you are willing and interested, feel free to help develop it for yourself and others.
Report issues and help improve
If you feel a feature is missing, or you have encounter a bug, report it in the issues section. Even if you feel question/flow are leading to wrong interpretation, feel free to open a issue. Please read the contribution guidelines to get started.
Spread the words
:star:️ Star this project, use it, or share it with your friends. It will really help us to gain motivation and zeal towards working on it.
License
Refer LICENSE file in this repository.
Recommend
-
40
If one day we will tell our great-grandchildren the story of the artificial intelligence, it should perhaps begin with a perceptron. Biological Introduction A neuron is an electricall...
-
67
Jet grooming through reinforcement learning We introduce a novel implementation of a reinforcement learning (RL) algorithm which is...
-
48
Whats my Windows Account Name? Add to FavoritesShareWhats my Win...
-
62
We are laboring on getting Fedora Workstation 31 out the door next Month, with the beta release being made available last week . So here are some of the highlight...
-
14
We’ve just finished the third webinar in our quarterly series on updates to the VCPP Pricing, Metering and Reporting! We discussed what partners needed to know now, and what they needed to prepare for down the road. In this blog, we’ll take a...
-
9
Whats in your headphones? Tuesday, June 10, 2003 Sorry for the lack of posts lately. News has been slow, and I have been swamped (once again) with work (can you say DRK 4?). Anyways, I have been doing a lot of p...
-
8
Setting HTTP status code based on Exception in Slim 4 One thing that’s quite convenient is to be able to throw an exception with a valid HTTP code set and have that code sent to the client. For example, you m...
-
11
http status code 404 使用陷阱
-
5
artur-intech commented
-
10
An HTTP Status Code to Report Requester Impairment Workgroup: Internet-Draft: draft-richardroda-420requesterimpaired-02 Published: 10...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK