public static HttpFailure sendErrorResponse(int code, String body) {
    return new HttpFailure(new MockResponse().setResponseCode(code).setBody(body));
  }
Ex code 400 when the server cannot read the spans
zipkin-junit5/src/main/java/zipkin2/junit5/HttpFailure.java