Back to all status codes

401

Unauthorized

Client Error
RFC 7235
Popular

The request requires user authentication.

Detailed Information

The 401 status code indicates that the request requires user authentication. The response must include a WWW-Authenticate header field containing a challenge applicable to the requested resource.

Common Examples

  • Accessing protected resources
  • API requests requiring authentication

Common Uses

  • API requests requiring authentication
  • Protected resources

Best Practices

  • Use when authentication is required
  • Include WWW-Authenticate header with authentication details
  • Ensure proper authentication mechanisms are in place

Quick Actions

Category Information

Client Error

The request contains bad syntax or cannot be fulfilled

Available for Freelance

Fullstack developer specializing in Flutter Mobile Apps, .Net Back End, and Angular/React. Let's build something amazing together!

Stay in the loop

Get notified about new tools and updates

HTTP Status Codes Reference - Complete List with Descriptions