Handle bad response codes