The http code status returned by the backend is not taken into account in the websocket response

0

Hi,

We are Using Api gateway Websocket (route $connect ) with the following configurations :

  • Integration type: Lambda Function
  • Use Lambda Proxy integration: False
  • Use of Custom Request Templates
  • Route Integration Response Key: $default

Behavior :

Backend (lambda) response : { "statusCode": 401}
Websocket Response status code: 101. (should be 401 like lambda response )

Question:

How can I configure the Websocket Route response to match the backend response?

I really appreciate any help you can provide.

回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ