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.

Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen