All jobs / Backend developer / API Development

Backend developer interview question · 0–1 years

The interviewer asks: “What's the difference between HTTP 401 and 403?” Strongest answer?

The strongest answer

401: we don't know who you are — authenticate. 403: we know who you are, and you still may not do this.

Why it works

Exactly. 401 is missing or invalid credentials. 403 is an authenticated caller without permission. Clients branch: sign in vs you can't.

What a good answer covers

Answers that fall short

Who gets asked this

More API Development questions