7.1. Result-Code AVP
7.1. Result-Code AVP
The Result-Code AVP (AVP Code 268) is of type Unsigned32 and indicates whether a particular request was completed successfully or an error occurred. All Diameter answer messages in IETF-defined Diameter application specifications MUST include one Result-Code AVP. A non-successful Result-Code AVP (one containing a non-2xxx value other than DIAMETER_REDIRECT_INDICATION) MUST include the Error-Reporting-Host AVP if the host setting the Result-Code AVP is different from the identity encoded in the Origin-Host AVP.
The Result-Code data field contains an IANA-managed 32-bit address space representing errors (see Section 11.3.2). Diameter provides the following classes of errors, all identified by the thousands digit in the decimal notation:
-
1xxx (Informational)
-
2xxx (Success)
-
3xxx (Protocol Errors)
-
4xxx (Transient Failures)
-
5xxx (Permanent Failure)
An unrecognized class (one whose first digit is not defined in this section) MUST be handled as a permanent failure.