Fix error http cases