Got 500 error when access token expired

I have tried many times before, when access token invalid or expired, 401 was responded.
But now, when the token expired, I get a 500 error.


curl --location '' \
--header 'x-api-key: amzn1.application.Masked' \
--header 'Authorization: Bearer Atza|Masked'


    "status": 500,
    "code": "INTERNAL",
    "message": "Internal Server Error.",
    "reference": "27c4bdde-3f4a-471d-8dfb-57f390e77967"

(I’m sure all the required params are correct. After I refreshed the token and replaced it with the new access token, the API call was successful.)
Do you have any page that lists all the response codes and explains them?