I'm trying to understand the authorizers in AWS Api Gateway. As I understand, if exception in the logic takes place in authorizer, then we would definitely get 401 with a message unauthorized. Is it possible to return bad request response, or unprocessable entity response?
I found that authorizers work a bit strange:
1) custom authorizers in Amazon API Gateway 500 error
2) https://forums.aws.amazon.com/message.jspa?messageID=753817