http: handle failed callbacks
http: small code tideup