Hello there,
The OAuth2.0 spec provides guidance on how to handle errors during authentication using the error portion of the error response.
Here's a sample error response:
{
"error": "invalid_scope",
"error_description": "AADSTS70011: The provided value for the input parameter 'scope' isn't valid. The scope ***************************************** isn't valid.\r\nTrace ID: 255d1aef-8c98-452f-ac51-23d051240864\r\nCorrelation ID: fb3d2015-bc17-4bb9-bb85-30c5cf1aaaa7\r\nTimestamp: 2016-01-09 02:02:12Z",
"error_codes": [
70011
],
"timestamp": "2016-01-09 02:02:12Z",
"trace_id": "255d1aef-8c98-452f-ac51-23d051240864",
"correlation_id": "fb3d2015-bc17-4bb9-bb85-30c5cf1aaaa7",
"error_uri":"**************************************************"
}
https://learn.microsoft.com/en-us/azure/active-directory/develop/reference-error-codes
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--