public RestServiceErrorCode getErrorCode() {
    return error;
  }
@param message the exception message.
@param error the {@link RestServiceErrorCode}.
@param includeExceptionMessageInResponse {@code true} to hint that the exception message should be returned to the
                                         client as a response header.
@param includeExceptionHeadersInResponse {@code true} to hint the exception metadata should be included in the
                                                      response headers.
@param exceptionHeadersMap {@link Map} of exception metadata containing response headers as keys and corresponding values.
ambry-api/src/main/java/com/github/ambry/rest/RestServiceException.java