Skip to content

417 Expectation Failed

The server cannot meet the requirements specified in the client’s ‘Expect’ header.

Use this when you reject a client’s 100-Continue expectation because you don’t support it or can’t fulfill it.

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