added 406 error handle