domain-http error pages 

This PR supersedes #4438

I squashed @spolti commits into one and add few more changes to layout of htmls