> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/tposs/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/tposs/latest/troubleshooting/diameter-result-codes.md).

# Diameter result codes

This document provides information about the values of the `Result-Code` AVP that TPOSS can return in a Diameter response.

## TPOSS AAA result codes

The table below lists all possible values that TPOSS can return in the `Result-Code` AVP of a Gx, Gy, or NASREQ answer:

| Result-Code | Meaning | When |
|---|---|---|
| 2001 `DIAMETER_SUCCESS` | Request succeeded | The request was handled and answered successfully. |
| 3001 `DIAMETER_COMMAND_UNSUPPORTED` | Request could not be handled | The command code of the request is not supported on this interface. |
| 3004 `DIAMETER_TOO_BUSY` | Request could not be served | The database is unhealthy when the request arrives, or a database error occurs while TPOSS handles it. |
| 4001 `DIAMETER_AUTHENTICATION_REJECTED` | Request rejected | There is no network session for the given `Framed-IP-Address`, or there is more than one. |
| 4012 `DIAMETER_CREDIT_LIMIT_REACHED` | No quota left | Returned on Gy inside the `Multiple-Services-Credit-Control` AVP when TPOSS can not grant any units for a service session. |
| 5002 `DIAMETER_UNKNOWN_SESSION_ID` | Unknown session | A Gy request arrives for a session that does not exist in the TPOSS database |
| 5005 `DIAMETER_MISSING_AVP` | A required AVP is absent | A mandatory AVP is missing in the request. The answer carries `Failed-AVP` with the missing AVP. |
| 5012 `DIAMETER_UNABLE_TO_COMPLY` | Unclassified failure | An internal error occurs while TPOSS handles the request. |

## TPOSS HSS result codes

The table below lists all possible values that the TPOSS HSS server can return in the `Result-Code` or `Experimental-Result-Code` AVPs:

| Result-Code / Experimental-Result-Code | Experimental | Meaning | When |
|---|---|---|---|
| 2001 `DIAMETER_SUCCESS` | No | Request succeeded | AIR, ULR or PUR answered successfully. |
| 5001 `DIAMETER_ERROR_USER_UNKNOWN` | Yes | Unknown subscriber | The IMSI has no AuC or subscription record. |
| 4181 `DIAMETER_AUTHENTICATION_DATA_UNAVAILABLE` | Yes | The AuC cannot serve vectors | Not provisioned, key storage unreachable, or the sequence-number counter is exhausted. |
| 5420 `DIAMETER_ERROR_UNKNOWN_EPS_SUBSCRIPTION` | Yes | No usable EPS subscription | The subscriber has no APN configured, or its default APN is missing. |
| 5421 `DIAMETER_ERROR_RAT_NOT_ALLOWED` | Yes | Access technology is not allowed | The request is not E-UTRAN, or `Access-Restriction-Data` bars E-UTRAN for this subscriber. |
| 5004 `DIAMETER_ERROR_ROAMING_NOT_ALLOWED` | Yes | Roaming is not alowed | `Subscriber-Status` is not `SERVICE_GRANTED`. |
| 5005 `DIAMETER_MISSING_AVP` | No | A required AVP is absent | Missing `User-Name` or `Visited-PLMN-Id` on an AIR, or missing `User-Name` on a PUR. |
| 3001 `DIAMETER_COMMAND_UNSUPPORTED` | No | Request could not be handled | An unsupported command, an undecodable request, or a missing `Session-Id`. |
| 3004 `DIAMETER_TOO_BUSY` | No | Request could not be served | The database is unhealthy, so the request can not be handled. |
| 5012 `DIAMETER_UNABLE_TO_COMPLY` | No | Unclassified failure | Fallback for an AuC or database error with no more specific code. |
