0

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 ?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.