Skip to content

416 Range Not Satisfiable

You asked for a specific chunk of a file (like byte 100-200), but the file is only 50 bytes long.

Use this when a client tries to resume a download starting at byte 1000, but your file is only 500 bytes long.

import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => {
throw new HttpException('Range Not Satisfiable', 416);
});