handle 406 errors