Skip to content

Commit

Permalink
fixs typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jscyo committed Sep 5, 2023
1 parent 7540c59 commit d93837b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/http-error-codes-401-vs-403/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ author: "Joel Coutinho"
Understanding HTTP status codes is imperative since most modern Web APIs leverage this protocolr and on the surface, HTTP status codes are straightforward. A `200` response signifies the request was successfully completed while a `404` signifies that the address was not found and a `500` means an internal error occurred in the backend server. But there seems to be some confusion between error codes `401 Unauthorized` and `403 Forbidden`. In this blog we will be looking into the differences between the two and when is it appropriate to respond with them.

## HTTP 401 UNAUTHORIZED
The HTTP status code 401, often denoted as `UNAUTHORIZED`, signifies that the client lacks proper authentication credentials or has provided invalid credentials. In simpler terms, the server has failed to identify the user
The HTTP status code 401, often denoted as `UNAUTHORIZED`, signifies that the client lacks proper authentication credentials or has provided invalid credentials. In simpler terms, the server has failed to identify the user.

This could occur due to:

Expand Down

0 comments on commit d93837b

Please sign in to comment.