Added custom HTTP error page handling