You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only two HTTP status codes 200, 400 are used for every API response.
Expected Behaviour
API response should have a different status code according to the execution of the request because each code help us identify the cause of the problem when a web page or other resource does not load properly.
For Eg - 200 for successful HTTP requests. 201 for the successful creation of a new resource. 400 for bad request. 401 for unauthorized request, etc.
Actual Behaviour
Only two HTTP status codes 200, 400 are used for every API response.
Expected Behaviour
API response should have a different status code according to the execution of the request because each code help us identify the cause of the problem when a web page or other resource does not load properly.
For Eg -
200 for successful HTTP requests.
201 for the successful creation of a new resource.
400 for bad request.
401 for unauthorized request, etc.
Completed List of Status Codes can be found on https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
The text was updated successfully, but these errors were encountered: