Skip to content

410 Gone

Like 404, but permanent. The resource is gone and is never coming back. Search engines should drop it immediately.

Use this for APIs that have been permanently sunset and removed, or resources that were intentionally permanently deleted. It tells clients ‘Stop asking for this, forever’.

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