title: How to generate s3 custom error page when url expire
body: <p>We have generated s3 pre-signed download url using java sdk. Now when it expires an xml error page comes like </p>
  
  <pre><code>&lt;Error&gt;
  &lt;Code&gt;AccessDenied&lt;/Code&gt;
  &lt;Message&gt;Request has expired&lt;/Message&gt;
  &lt;X-Amz-Expires&gt;43198&lt;/X-Amz-Expires&gt;
  &lt;Expires&gt;2016-07-11T20:32:43Z&lt;/Expires&gt;
  &lt;ServerTime&gt;2016-07-12T05:53:18Z&lt;/ServerTime&gt;
  &lt;RequestId&gt;76FF61E84B37E053&lt;/RequestId&gt;
  &lt;HostId&gt;
  S3YVhGnr+7C9fFbjaKGhGyBHIaq/Y8j8jHmfC7P31zgydJr`enter code here`QAYqROb8U1+Eq5CyV7u+OLItkd+0=
  &lt;/HostId&gt;
  &lt;/Error&gt;
  </code></pre>
  
  <p>Instead of this we want a custom page to come. We are not hosting any website, simply wish to download some excel file from bucket.</p>