catch 406 errors