I have a server, which does a request to AWS S3.
What is the correct status code, if my server's request to S3 failed?
Let me break it down more.
- "Client" does request to "my server".
- "My server" does a request to a "third party server", which fails.
- Now "my server" needs to communicate to the "client", that the client's request failed because the request to the third party server failed.
I googled and found that 502 Bad Gateway, might be correct here, but I'm not sure because it also talks about my server being a proxy, which it isn't. My server does additional processing and database calls with the content of the request before the call to AWS S3, as well as after it got the result from AWS.