I have written a lambda authorizer function that calls two custom authorization services to validate the input token. So, from lambda authorizer, I want to return different possible messages for the status code 401. For example,
"INVALID credentials", "Missing Credentials", "Token Revoked".
But, In case of Unauthorized, is there any way of customising the error messages ?