How to add custom reponse for Kong error the the upstream server time out

Hi Team,

I’m trying to find a way to add custom response page or message on upstream time out happened. By default, it appears

Kong Error
The upstream server is time out.

Thanks