updated the http manager to return meaningfull errors.