I am currently trying to setup AWS Api Gateway, to proxy to another api, that has fully functional methods, response content, status codes etc. This is fairly simple to setup, but I have noticed that the Api Gateway always returns 200 OK
no matter what the origin api responds with.
Fx. if there was a bad request (in the origin api) which results in a error message in JSON
and a 400 Bad Request
, the Api Gateway will respond with a the exact same error message, but a status code of 200 OK
If I remove all settings from the Message Response
in the API Gateway web-interface, I get an internal error in the API Gateway. Can it be true that I have to map all the different status codes from the origin api manually in the Api Gateway?
I would prefer if it was possible to just let the status code (as well as the response, which currently works great) pass through, and not have the Api Gateway touch it in any way.