Customize API Gateway response for different cases of MissingAuthenticationTokenException

0

Given "MissingAuthenticationTokenException" can be returned for:

  • Missing authentication token
  • Resource path does not exist.

Is there a way to customize API Gateway response for different MISSING_AUTHENTICATION_TOKEN? For example preserve the 403 statusCode for missing authentication token but querying valid resource paths, but return 404 for resource path does not exist.

已提問 1 個月前檢視次數 114 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南