code: public Map<String, Object> asMap() {
          Map<String, Object> map = new LinkedHashMap<>();
          map.put("statusCode", statusCode);
          map.put("statusMessage", statusMessage);
          map.put("requestMethod", requestMethod);
          map.put("requestUri", requestUri);
  
          if (!StringUtils.isNullOrEmpty(message)) {
              map.put("message", message);
          }
          if (!StringUtils.isNullOrEmpty(stacktrace)) {
              map.put("stacktrace", stacktrace);
          }
  
          return map;
      }
docs: Get the Error as a {@link Map}.
  
  @return the error as a map