public function httpError($code, $message = null)
    {
        if ($this->request->isMedia() || !$response = ErrorPage::response_for($code)) {
            parent::httpError($code, $message);
        } else {
            throw new HTTPResponse_Exception($response);
        }
    }
public function httpError($code, $message = null)
    {
        if ($this->request->isMedia() || !$response = ErrorPage::response_for($code)) {
            parent::httpError($code, $message);
        } else {
            throw new HTTPResponse_Exception($response);
        }
    }
public function httpError ( $ code , $ message = null ) { if ( $ this -> request -> isMedia ( ) || ! $ response = ErrorPage :: response_for ( $ code ) ) { parent :: httpError ( $ code , $ message ) ; } else { throw new HTTPResponse_Exception ( $ response ) ; } }
Show a pretty error, if possible

@uses ErrorPage::response_for()
Show a pretty error if possible