fixes all response codes