Results and the Exception Codes
Exceptions are returned when an operation fails to execute. The standard specifies several exceptions that are thrown in various cases. They are supported for all operations. The standard leaves open a point to insert application-specific codes as subcodes. The only exception that makes sense, for this application, to be extended is the WF_INVALID_CONTEXT_DATA, main code 201. Table 72 shows Result values mapped to subcodes.
The Locked error is reported as a temporary error. The remaining ones are reported as fatal errors. The Transport Failure error is mapped to the WF Operation Failed error, main code 400, no subcode necessary, which is, by nature, a temporary error.