AI engineering glossary · Web APIs HTTP

What is 401 Unauthorized?

401 Unauthorized: The status code meaning the request lacks valid credentials, for example a missing or expired token or a wrong API key. Despite its name it concerns authentication, and the response may say how to authenticate.

Level: beginnerTopic: Web APIs HTTP

401 Unauthorized: an example

Calling an API without an Authorization header returns 401.

Related terms

More Web APIs HTTP terms

Where you learn it

401 Unauthorized is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.