1 個回答
- 最新
- 最多得票
- 最多評論
1
Hello,
I understand that you want Websocket API to return 401 status code to client, without returning unauthorized error response from Lambda authorizer. REST API supports Gateway Response, which can be used to modify 403 status code from lambda authorizer to customized error response, including 401 status code.
At this time, Websocket API does not support Gateway Response. We already have a feature request open with the service team, regarding this. While I am unable to comment on if/when this feature may get released, I request you to keep an eye on our What's New and Blog pages for any new feature announcements.
相關內容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
Thanks for the response and links, do you have a link to that feature request? So we can follow the progress. Thanks