apply Error Data packet in challenge status

Change-Id: I629e57ad96d33ad77dcc939a25577a15afcf2886
diff --git a/src/challenge-module.hpp b/src/challenge-module.hpp
index 660ff15..37fd611 100644
--- a/src/challenge-module.hpp
+++ b/src/challenge-module.hpp
@@ -51,7 +51,7 @@
   createChallengeModule(const std::string& challengeType);
 
   // For CA
-  virtual std::tuple<Error, std::string>
+  virtual std::tuple<ErrorCode, std::string>
   handleChallengeRequest(const Block& params, CertificateRequest& request) = 0;
 
   // For Client
@@ -68,14 +68,14 @@
 
 protected:
   // used by challenge modules
-  std::tuple<Error, std::string>
-  returnWithError(CertificateRequest& request, Error errorCode, std::string&& errorInfo);
+  std::tuple<ErrorCode, std::string>
+  returnWithError(CertificateRequest& request, ErrorCode errorCode, std::string&& errorInfo);
 
-  std::tuple<Error, std::string>
+  std::tuple<ErrorCode, std::string>
   returnWithNewChallengeStatus(CertificateRequest& request, const std::string& challengeStatus,
                                JsonSection&& challengeSecret, size_t remainingTries, size_t remainingTime);
 
-  std::tuple<Error, std::string>
+  std::tuple<ErrorCode, std::string>
   returnWithSuccess(CertificateRequest& request);
 
 public: