What is the difference between a 401 and a 403 error in the context of API authentication?

Responsive Ad Header

Question

Grade: Education Subject: Support
What is the difference between a 401 and a 403 error in the context of API authentication?
Asked by:
90 Viewed 90 Answers

Answer (90)

Best Answer
(304)
A 401 Unauthorized error indicates that the client is not authenticated, while a 403 Forbidden error indicates that the client is authenticated but does not have permission to access the requested resource. A 401 requires authentication, whereas a 403 means you're authenticated but still denied access.