我正在尝试使用Rails应用程序访问Amazon s3存储桶上的上传文件。当我点击特定链接时,会出现以下错误。
This XML file does not appear to have any style information associated with it. The document tree is shown below. <Error>
<Code>AccessDenied</Code>
<Message>Request has expired</Message>
<X-Amz-Expires>600</X-Amz-Expires>
<Expires>2016-07-20T22:22:58Z</Expires>
<ServerTime>2016-07-20T22:33:21Z</ServerTime>
<RequestId>461898B9DD2599A6</RequestId>
<HostId>
jAarpDNUJn+SygprDBXP/EnI9vN5sAR2OUqXSQ7UwsIXSAB6HR9OoYpmd3RXmxXv9AlZG+wsL8s=
</HostId>
</Error>
如何显示自定义错误消息而不是“拒绝访问”页面?