Once a Zend_Http_Response object is instantiated, it provides
several methods that can be used to test the type of the response. These all
return Boolean TRUE or FALSE:
isSuccessful(): Whether the request was successful or not. ReturnsTRUEfor HTTP 1xx and 2xx response codesisError(): Whether the response code implies an error or not. ReturnsTRUEfor HTTP 4xx (client errors) and 5xx (server errors) response codesisRedirect(): Whether the response is a redirection response or not. ReturnsTRUEfor HTTP 3xx response codes
Example 489. Using the isError() method to validate a response
<?php
if ($response->isError()) {
echo "Error transmitting data.\n"
echo "Server reply was: " . $response->getStatus() .
" " . $response->getMessage() . "\n";
}
// .. process the response here...




