Fix conditions for HTTP status code