Added extensive support for html server-side errors