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.

Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions