# HTTP 498 Invalid Token

**Code:** `498` · **Category:** HTTP · **Seen on:** HTTP, REST API

A non-standard code (used by Esri/ArcGIS and some APIs) meaning the access token is expired or invalid.

## Meaning

Request a new token and retry. Check token expiry, that the token is sent in the expected parameter/header, and clock drift between client and server.

## Common causes

- Token expired
- Token malformed or revoked
- Wrong parameter/header name
- Clock skew
- Token for another service

## Quick fix

1. Obtain a fresh token
2. Send it in the documented header/parameter
3. Sync the client clock

## Detailed fix by platform

### cURL

1. `curl -i "https://gis.example.com/arcgis/rest/services?f=json&token=NEWTOKEN"`

## How to diagnose

1. **Token** — Expired?
2. **Delivery** — Right header?
3. **Clock** — In sync?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/http/498-invalid-token)
