proxyserver example handles exception with a 504 status