HTTP Status Codes Cheat Sheet/Authentication and authorization codes

The most common auth-related status codes.

Section: Common API Response Patterns

Authentication and authorization codes

text
text
401 Unauthorized
403 Forbidden
407 Proxy Authentication Required
Explanation

`401` typically means authentication is required or invalid, while `403` usually means the server understood the request but refuses it. `407` is the proxy-auth equivalent of `401`.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Common API Response Patterns
GET success codes
Typical success responses for reads.
OpenIn sheettextsame section
Create success codes
Typical responses when creating resources.
OpenIn sheettextsame section
Rate limiting and overload codes
Responses commonly used when a client must back off.
OpenIn sheettextsame section
HTTP status code classes
Understand the five categories of HTTP responses.
OpenIn sheettext1 tag match
Debug status codes in the right order
A quick flow for deciding where a problem lives.
OpenIn sheettext1 tag match
Check headers and status with curl
Inspect the response line and headers only.
OpenIn sheetbash1 tag match