Skip to content

431 Request Header Fields Too Large

Either an individual header or all headers collectively are too huge. Often caused by having a massive amount of cookies.

Use this if the client is sending cookies so massive that they threaten to crash your header parser.

import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => {
throw new HttpException('Request Header Fields Too Large', 431);
});