401 Unauthorized

Authentication is missing or invalid.

Status code
401
Reason phrase
Unauthorized
Class
4xx Client errors

What does 401 Unauthorized mean?

The request has no valid credentials. Despite the name it means "unauthenticated". The response should include a WWW-Authenticate header.

Common causes

How to fix it

401 and webhooks

If your endpoint returns 401 because signature verification failed, the provider keeps retrying — check the signing secret (HMAC debugger).

Test how your client handles 401

In the webhook tester you can add a response rule that answers 401 — useful to check retries, error handling and alerts before production.

FAQ

What does HTTP 401 mean?

Authentication is missing or invalid. The request has no valid credentials. Despite the name it means "unauthenticated". The response should include a WWW-Authenticate header.

Is 401 an error?

Yes — a client error: the request must be changed before retrying.

Other 4xx codes

400 Bad Request · 402 Payment Required · 403 Forbidden · 404 Not Found · 405 Method Not Allowed · 406 Not Acceptable · 408 Request Timeout · 409 Conflict · 410 Gone · 411 Length Required · 412 Precondition Failed · 413 Content Too Large · 414 URI Too Long · 415 Unsupported Media Type · 418 I'm a teapot · 422 Unprocessable Content · 425 Too Early · 426 Upgrade Required · 428 Precondition Required · 429 Too Many Requests · 431 Request Header Fields Too Large · 451 Unavailable For Legal Reasons · 499 Client Closed Request

← 400   All status codes   402 →

About HTTP 401

The status line “HTTP/1.1 401 Unauthorized” belongs to the 4xx family — client errors, meaning the request itself must change.

Retrying a 401 without changing the request usually gives the same answer; log the response body, it often names the bad field or header.

In monitoring, alert on the rate of 401 responses rather than single events, and split by endpoint to find the source.