http: handle :http_error properly