API Testing · Junior · Question 13 of 75

What is the difference between 401 and 403?

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.

Further reading

Problem with a question

API Testing · Junior · question 13

Test yourself

Take the API Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz