Implemented http response status checking