Node.js · Junior · Question 65 of 75

What is the difference between status codes 401 and 403?

Explanation

Send 401 when credentials are missing or invalid, and 403 when a logged-in user tries to access something they're not allowed to.

Further reading

Problem with a question

Node.js · Junior · question 65

Test yourself

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

Take this quiz