Defined the errors raised by the remotes. Implemented retry.