Skip to content

421 Misdirected Request

The request was sent to a server that isn’t configured to produce a response for that specific destination.

Used mostly by complex CDN/Server infrastructures when a request is accidentally routed to the wrong internal server.

import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => {
throw new HttpException('Misdirected Request', 421);
});