Added more flexible error page, and http