Skip to content

506 Variant Also Negotiates

A server configuration error resulting in an infinite loop while trying to negotiate the right content to return.

Use this if your server gets stuck in a recursive loop trying to negotiate which content structure (like language or encoding format) to respond with.

import { HttpException, get } from 'shokupan';
export const getResource = get('/resource', () => {
throw new HttpException('Variant Also Negotiates', 506);
});