manikandan
Member
Hi,
I used this API (rest-api/cdn/show_routes) to get the streams active in CDN. If the streams are active , it returns 200 response when there are no streams in CDN 404 response is returned.
The actual issues come here when I am using AWS Loadbalancer to call this API. When 200 response is returned from WCS, LB returns data with 200. But when 404 response is returned from WCS, LB returns with 502 bad gateway.
On checking with the issue, I found this discussion https://forums.aws.amazon.com/thread.jspa?threadID=94483
It seems proper HTTP headers has to be returned from source so that LB captures it properly.
Is there any way to change the reponse code or add proper HTTP headers from WCS when there is no active streams in CDN?
I used this API (rest-api/cdn/show_routes) to get the streams active in CDN. If the streams are active , it returns 200 response when there are no streams in CDN 404 response is returned.
The actual issues come here when I am using AWS Loadbalancer to call this API. When 200 response is returned from WCS, LB returns data with 200. But when 404 response is returned from WCS, LB returns with 502 bad gateway.
On checking with the issue, I found this discussion https://forums.aws.amazon.com/thread.jspa?threadID=94483
It seems proper HTTP headers has to be returned from source so that LB captures it properly.
Is there any way to change the reponse code or add proper HTTP headers from WCS when there is no active streams in CDN?