Error Codes

Here are some of the error codes you might encounter:

Error Code
API
Reason

302

Authorise

Possible to have the following error codes in the 'error' attribute.

  • 500: Unknown or other server side errors

  • 503: Myinfo under maintenance

  • access_denied: When user did not give consent

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.

Last updated

Was this helpful?