# Error Codes

Here are some of the error codes you might encounter:

| Error Code                                                                                                        | API                                                     | Reason                                                                                                                                                                                                                             |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 302                                                                                                               | Authorise                                               | <p>Possible to have the following error codes in the 'error' attribute.</p><ul><li>500: Unknown or other server side errors</li><li>503: Myinfo under maintenance</li><li>access\_denied: When user did not give consent</li></ul> |
| 400                                                                                                               | Token                                                   | Same authcode in the body is being re-used.                                                                                                                                                                                        |
| Authcode error - missing, invalid, expired, revoked.                                                              |                                                         |                                                                                                                                                                                                                                    |
| 401                                                                                                               | Token                                                   | No security header given                                                                                                                                                                                                           |
| Invalid App ID used. Digital service is not registered with Myinfo                                                |                                                         |                                                                                                                                                                                                                                    |
| The timestamp of server is not synchronised. Check timestamp of server                                            |                                                         |                                                                                                                                                                                                                                    |
| The value of the nonce in the authorisation header was deemed to be repeated. Check that the nonce is not re-used |                                                         |                                                                                                                                                                                                                                    |
| Ensure HTTP 'Authorization' header to be 'PKI\_SIGN'                                                              |                                                         |                                                                                                                                                                                                                                    |
| Person                                                                                                            | No security header given                                |                                                                                                                                                                                                                                    |
| Invalid App ID used. Digital service is not registered with Myinfo                                                |                                                         |                                                                                                                                                                                                                                    |
| The timestamp of server is not synchronised. Check timestamp of server                                            |                                                         |                                                                                                                                                                                                                                    |
| The value of the nonce in the authorisation header was deemed to be repeated. Check that the nonce is not re-used |                                                         |                                                                                                                                                                                                                                    |
| Ensure HTTP 'Authorization' header to be 'PKI\_SIGN'                                                              |                                                         |                                                                                                                                                                                                                                    |
| The requested UIN/FIN does not match the UIN/FIN of the person who logged in                                      |                                                         |                                                                                                                                                                                                                                    |
| Requested attributes do not match the attributes consented by person                                              |                                                         |                                                                                                                                                                                                                                    |
| 403                                                                                                               | Person                                                  | Requested attributes does not match the attributes consented by person. This happens if the list of attributes in your request are different from the attributes specified when calling the token API.                             |
| Incorrect API URL used                                                                                            |                                                         |                                                                                                                                                                                                                                    |
| Digital service is not registered with Myinfo                                                                     |                                                         |                                                                                                                                                                                                                                    |
| Request contains attributes not allowable for the digital service                                                 |                                                         |                                                                                                                                                                                                                                    |
| 404                                                                                                               | Token                                                   | Incorrect API URL used.                                                                                                                                                                                                            |
| Same authcode in the body is being re-used.                                                                       |                                                         |                                                                                                                                                                                                                                    |
| Person                                                                                                            | Incorrect API URL used.                                 |                                                                                                                                                                                                                                    |
| UIN/FIN has a Singpass account, but does not have a Myinfo profile                                                |                                                         |                                                                                                                                                                                                                                    |
| 500                                                                                                               | Token                                                   | Unexpected error. Check response body for actual error.                                                                                                                                                                            |
| Person                                                                                                            | Unexpected error. Check response body for actual error. |                                                                                                                                                                                                                                    |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.developer.singpass.gov.sg/docs/legacy-myinfo-v3-v4/technical-specifications/myinfo-v3/resources/error-codes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
