Temporarily set default error in ReturnCode constructor to CommonErrors::success.