public void resetServerErrors() {
    this.serverErrors.clear();
    this.hardError = null;
    this.getErrorOnDataBlobOnly = false;
    this.serverErrorsByType.get(RequestOrResponseType.PutRequest).clear();
    this.serverErrorsByType.get(RequestOrResponseType.GetRequest).clear();
    this.serverErrorsByType.get(RequestOrResponseType.DeleteRequest).clear();
    this.serverErrorsByType.get(RequestOrResponseType.TtlUpdateRequest).clear();
    this.serverErrorsByType.get(RequestOrResponseType.UndeleteRequest).clear();
    this.serverErrorsByType.get(RequestOrResponseType.ReplicaMetadataRequest).clear();
    this.serverErrorsByType.get(RequestOrResponseType.ReplicateBlobRequest).clear();
    this.serverErrorsByType.get(RequestOrResponseType.PutRequest).clear();
    this.serverErrorsByType.get(RequestOrResponseType.AdminRequest).clear();
  }
Clear the error for subsequent requests. That is all responses from this point onwards will be successful
({@link ServerErrorCode#NoError}) until/unless another set error method is invoked.
ambry-router/src/test/java/com/github/ambry/router/MockServer.java