For 504(Gateway Time-out) http status code, apigee is not sending the custom response as per the Fault Rule Handling, Instead it sends the html response, even though in trace window under Response Sent to Client shows expected response which is as per fault rule handling.
But somehow when we see the final response on Postman, we get a html stating Gateway-timed-out error