code: public String toHtml() {
          StringBuilder stringBuilder = new StringBuilder();
  
          stringBuilder
                  .append("<p>")
                  .append(objectNode.get(TYPE).asText()).append(": ")
                  .append(objectNode.get(MESSAGE).asText()).append(" -> ")
                  .append(objectNode.get(DETAILS).toString())
                  .append("</p>");
  
          return stringBuilder.toString();
      }
docs: Get the error as a string in html format
  @return error in html format