package io.dropwizard.jersey.errors;

public class ErrorMessage {
    private final Integer code;
    private final String message;

    public ErrorMessage(String message) {
        this(500, message);
    }
    
    public ErrorMessage(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}

@@ -77,23 +77,19 @@
 e final 
-I
+i
 nt
-eger
  code;%0A 
@@ -120,16 +120,50 @@
 message;
+%0A    private final String details;
 %0A%0A    pu
@@ -232,20 +232,16 @@
 ;%0A    %7D%0A
-    
 %0A    pub
@@ -257,23 +257,113 @@
 Message(
-Integer
+int code, String message) %7B%0A        this(code, message, null);%0A    %7D%0A%0A    public ErrorMessage(int
  code, S
@@ -367,32 +367,48 @@
 , String message
+, String details
 ) %7B%0A        this
@@ -449,24 +449,56 @@
  = message;%0A
+        this.details = details;%0A
     %7D%0A%0A    p
@@ -580,24 +580,24 @@
 Message() %7B%0A
-
         retu
@@ -613,11 +613,75 @@
 e;%0A    %7D
+%0A%0A    public String getDetails() %7B%0A        return details;%0A    %7D
 %0A%7D%0A

Add optional "details" field to ErrorMessage