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.

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions