API Testing · Junior · Question 13 of 75
What is the difference between 401 and 403?
- 1They mean the same thing and can be used interchangeably
- 2
401: not authenticated;403: authenticated but not allowed - 3
401: the URL is wrong;403: the server is down for now
Show the answer
Correct answer: 401: not authenticated; 403: authenticated but not allowed
Explanation
No or invalid token gives 401. A valid user trying to open another user's admin page gets 403.