private function get_message($code)
{
switch ($code) {
//Generic XMLRPC errors
case -32700:
return _t('parse error. not well formed');
case -32701:
return _t('parse error. unsupported encoding');
case -32702:
return _t('parse error. invalid character for encoding');
case -32600:
return _t('server error. invalid xml-rpc. not conforming to spec.');
case -32601:
return _t('server error. requested method not found');
case -32602:
return _t('server error. invalid method parameters');
case -32603:
return _t('server error. internal xml-rpc error');
case -32500:
return _t('application error');
case -32400:
return _t('system error');
case -32300:
return _t('transport error');
// Pingback errors
// Pingback errors
case 16:
return _t('The source URI does not exist.');
case 17:
return _t('The source URI does not contain a link to the target URI, and so cannot be used as a source.');
case 32:
return _t('The specified target URI does not exist.');
case 33:
return _t('The specified target URI cannot be used as a target.');
case 48:
return _t('The pingback has already been registered.');
case 49:
return _t('Access denied.');
case 50:
return _t('The server could not communicate with an upstream server, or received an error from an upstream server, and therefore could not complete the request.');
// Additional standard errors
// Additional standard errors
case 1:
return _t('This XMLRPC server only accepts POST requests.');
default:
return Plugins::filter('xmlrpcexception_get_message', _t('Unknown XMLRPC Exception'), $code);
}
}