Host error page on external resource


I needed to serve the custom error page on external hosting, in the current task on the S3 bucket.
At this time, I call iframe with S3 URL from the template, but it looks like a not an optimal solution.
Maybe I can make this by haproxy itself? Separate backend?

Thanks for the advice!