check HTTP response status code