Skip to content

451 Unavailable For Legal Reasons

The server legally cannot show you this content (e.g. court order or government censorship). The number references the book Fahrenheit 451.

Use this if you receive a DMCA takedown or a government mandate blocking specific content, and you want to be totally transparent about why it’s blocked.

import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => {
throw new HttpException('Unavailable For Legal Reasons', 451);
});