SiteError.comYour friendly guide to HTTP status codes
Status CodesBlog
  1. Home
  2. AWS ELB
  3. 561 Unauthorized

561 Unauthorized

🚷
561
Unauthorized

Example HTTP Response

HTTP Response
HTTP/1.1 561 Unauthorized
Content-Type: application/json
Connection: close

{"message": "Unauthorized"}
Common Causes
  • Lambda authorizer function returned deny decision
  • Invalid or expired authentication token
  • Missing required authentication headers
  • Lambda authorizer validation logic rejected request
  • JWT token validation failed in authorizer
  • API key validation failed
  • Custom authentication logic in Lambda denied access
  • Lambda authorizer timeout or error
Technical Details

What does this mean?

The bouncer said no! Your request made it to AWS's VIP entrance, but the Lambda security guard checked your credentials and decided you're not on the list. Access denied at the door!

Technical Definition

The Lambda authorizer configured for the Application Load Balancer returned an unauthorized response.

Code Snippets

Ready-to-use code for returning this HTTP status in your application:

Node.js
// Express.js
app.get('/example', (req, res) => {
  res.status(561).json({
    error: 'Unauthorized',
    message: 'Your error message here'
  });
});

// Native HTTP
const http = require('http');

http.createServer((req, res) => {
  res.writeHead(561, { 'Content-Type': 'application/json' });
  res.end(JSON.stringify({
    error: 'Unauthorized',
    message: 'Your error message here'
  }));
}).listen(3000);
Related Status Codes
🔐401Unauthorized🚫403Forbidden🎫498Invalid Token

561 Unauthorized FAQ

What causes a 561 Unauthorized error?

Lambda authorizer function returned deny decision. Invalid or expired authentication token. Missing required authentication headers. Lambda authorizer validation logic rejected request. JWT token validation failed in authorizer. API key validation failed. Custom authentication logic in Lambda denied access. Lambda authorizer timeout or error.

463 Too Many IPs in X-Forwarded-For440 Login Time-out

Popular Status Codes

  • 200 OK
  • 301 Moved Permanently
  • 302 Found
  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found
  • 500 Internal Server Error
  • 502 Bad Gateway
  • 503 Service Unavailable

Compare Codes

  • 401 vs 403
  • 301 vs 302
  • 404 vs 410
  • 500 vs 502
  • Compare any codes →

Categories

  • Informational
  • Success
  • Redirection
  • Client Error
  • Server Error
  • NGINX
  • Cloudflare
  • AWS ELB
  • Microsoft IIS

Tools

  • Cheat Sheet
  • Status Code Quiz
  • URL Checker
  • API Playground
  • Blog

© 2026 SiteError.com. All rights reserved.