Handle http server errors