http: add proper error handling to uclient_http_redirect()