difference between 401 and 403? code example
Example: 401 vs 403
401 Unauthorized VS 403 Forbidden
401 Unauthorized meaning
you did not provide a credential or correct credentials to send the
request
you are encorouranged to try again with correct credentials
403 Forbidden
even you did provide valid credentials
you are not authorized to take this action by who you are
because you do not have authority or permission
Do not bother to try again !