SiteError.comYour friendly guide to HTTP status codes
Status CodesBlog
  1. Home
  2. NGINX
  3. 498 Invalid Token

498 Invalid Token

🎫
498
Invalid Token

Example HTTP Response

HTTP Response
HTTP/1.1 498 Invalid Token
Content-Type: application/json

{"error": "Token expired or invalid"}
Common Causes
  • Authentication token has expired
  • Token signature validation failed
  • Token was revoked or invalidated
  • Malformed or tampered token
  • Used with Esri ArcGIS services through nginx
Technical Details

What does this mean?

Your ticket expired! Like showing up to a concert with last year's ticket. That token you're waving around? Not valid anymore, friend.

Technical Definition

The authentication token is invalid or has expired. Used by nginx with Esri's ArcGIS Server or in custom token-based authentication.

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(498).json({
    error: 'Invalid Token',
    message: 'Your error message here'
  });
});

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

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

498 Invalid Token FAQ

What causes a 498 Invalid Token error?

Authentication token has expired. Token signature validation failed. Token was revoked or invalidated. Malformed or tampered token. Used with Esri ArcGIS services through nginx.

497 HTTP Request Sent to HTTPS Port499 Client Closed Request

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.