public function returnClientErrorResponse(Zend_Http_Response $response)
    {
        $status = $response->getStatus();
        switch ($status) {
            case 401:
                $message = self::INVALID_API_KEY;
                break;
            case 403:
                $message = self::INVALID_STORE_ID;
                break;
            case 408:
                $message = self::NETWORK_TIMEOUT;
                break;
            default:
                $message = self::UNKNOWN_FAILURE;
                break;
        }
        return array(
            'message' => Mage::helper('radial_core')->__($message), 'success' => false
        );
    }
public function returnClientErrorResponse(Zend_Http_Response $response)
    {
        $status = $response->getStatus();
        switch ($status) {
            case 401:
                $message = self::INVALID_API_KEY;
                break;
            case 403:
                $message = self::INVALID_STORE_ID;
                break;
            case 408:
                $message = self::NETWORK_TIMEOUT;
                break;
            default:
                $message = self::UNKNOWN_FAILURE;
                break;
        }
        return array(
            'message' => Mage::helper('radial_core')->__($message), 'success' => false
        );
    }
public function returnClientErrorResponse ( Zend_Http_Response $ response ) { $ status = $ response -> getStatus ( ) ; switch ( $ status ) { case 401 : $ message = self :: INVALID_API_KEY ; break ; case 403 : $ message = self :: INVALID_STORE_ID ; break ; case 408 : $ message = self :: NETWORK_TIMEOUT ; break ; default : $ message = self :: UNKNOWN_FAILURE ; break ; } return array ( 'message' => Mage :: helper ( 'radial_core' ) -> __ ( $ message ) , 'success' => false ) ; }
Return the response data for client errors - 4XX range errors.
@param  Zend_Http_Response $response
@return array
Return the response data for client errors - 4XX range errors .