Skip to content

407 Proxy Authentication Required

Similar to 401, but you need to authenticate with the proxy server before you can access the actual server.

Proxy servers use this when the client needs to explicitly log into the proxy server itself before going out to the broader internet.

import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => {
throw new HttpException('Proxy Authentication Required', 407);
});