Skip to content

414 URI Too Long

The URL query string is way too long for the server to process.

Use this when the URL query string is absurdly long, which could be a sign of a bad client loop or a malicious attack trying to crash your router.

import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => {
throw new HttpException('URI Too Long', 414);
});