added status code comparison