XMLRPC Tutorial on XMLRPC Fault Format

xml-rpc faults are a type of responses. if there was a problem in processing a xml-rpc request, the methodresponse element will contain a fault element instead of a params element. the fault element, like the params element, has only a single value that indicates something went wrong. a fault response might look like:

<?xml version="1.0"?>
<methodresponse>
   <fault>
      <value><string>no such method!</string></value>
   </fault>
</methodresponse>

a fault will also have an error code. xml-rpc doesn't standardize error codes at all. you'll need to check the documentation for particular packages to see how they handle faults.

a fault response could also look like:

<?xml version="1.0"?>
<methodresponse>
   <fault>
      <value>
         <struct>
            <member>
               <name>code</name>
               <value><int>26</int></value>
            </member>
				
            <member>
               <name>message</name>
               <value><string>no such method!</string></value>
            </member>
				
         </struct>
      </value>
   </fault>
</methodresponse>