class BitmexException extends HttpStatusExceptionSupport
    implements HttpStatusException, HttpResponseAware {

  @JsonProperty("error")
  private Error error;

  private Map<String, List<String>> headers;
  private int httpStatusCode;

  public int getHttpStatusCode() {
    return httpStatusCode;
  }

  public void setHttpStatusCode(int httpStatusCode) {
    this.httpStatusCode = httpStatusCode;
  }

  public BitmexException(@JsonProperty("error") Error error) {
    this.error = error;
  }

  public String getErrorName() {
    return error.name;
  }

  @Override
  public String getMessage() {<FILL_FUNCTION_BODY>}

  @Override
  public void setResponseHeaders(Map<String, List<String>> headers) {
    this.headers = headers;
  }

  @Override
  public Map<String, List<String>> getResponseHeaders() {
    return headers;
  }

  static class Error {
    @JsonProperty("message")
    private String message;

    @JsonProperty("name")
    private String name;

    public Error(@JsonProperty("message") String message, @JsonProperty("name") String name) {
      this.message = message;
      this.name = name;
    }
  }
}

    return (error.message == null ? error.name : error.message)
        + " (HTTP:  "
        + httpStatusCode
        + ").";
  
<no_super_class>