Fixed incorrect validation of http request response status code