I'm currently trying to configure AWS Api Gateway on a proxy server for another api that has fully functional methods, response content, status codes, etc. It's pretty simple to configure, but I noticed that Api Gateway always returns 200 OK no matter what the beginning of the api answers.
Fx. if there was an incorrect request (at the beginning of the api) that leads to an error message in JSON and 400 Bad Request , Api Gateway will respond with the same error message, but the status code is 200 OK
If I remove all settings from Message Response in the Gateway API web interface, I get an internal error in the Gateway API. Could it be true that I have to display all the different status codes from the beginning of the api manually in Api Gateway?
I would prefer if you could just let the status code (as well as the answer that currently works fine) pass, and Api Gateway does not need to be touched in any way.
Martin hansen
source share