AWS api gateway - HTTP proxy should receive a status code from the source

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.

+7
aws-api-gateway
source share
1 answer

You are correct that currently when using the Gateway API you need to match all the response codes in the integration responses. We heard this “pass” request from other customers, and we may consider including this in future service updates.

0
source

All Articles