Skip to content

498 Invalid Token

An unofficial code indicating an expired or otherwise invalid token.

Use this explicitly when JWTs or access tokens are invalid or expired, although 401 is more standard.

import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => {
throw new HttpException('Invalid Token', 498);
});