406 status detection now works, instead of crashing