Return 404 instead of 403 #5101
Unanswered
jledesma-opsguru
asked this question in
Questions
Replies: 2 comments 2 replies
-
Any comments on this one? Maybe @moelasmar? |
Beta Was this translation helpful? Give feedback.
2 replies
-
say you have a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all.
As you know, API Gateway returns 403 when a non-existent method is called. This is a bit against the standards. I've been researching the issue, but couldn't find a way to fix it. I wanted to ask you if using SAM, you can create a mock response to return a 404 only in case the method or path does not exist so that it still returns 403 when there is an authentication error. I tried the following, but I still got 403:
Beta Was this translation helpful? Give feedback.
All reactions