// Path: src/main/java/org/iotlabs/dashboard/httpexceptions/BaseHttpException.java
// public class BaseHttpException {
//     private int code;
//     private String body;
// 
//     BaseHttpException(int code, String body) {
//         this.code = code;
//         this.body = body;
//     }
// 
//     public int getCode() {
//         return code;
//     }
// 
//     public String getBody() {
//         return body;
//     }
// }
// 
// Path: src/main/java/org/iotlabs/dashboard/literals/ContentType.java
// public class ContentType {
//     public static final String JSON = "application/json";
//     public static final String HTML = "text/html";
// }


import org.iotlabs.dashboard.httpexceptions.BaseHttpException;
import org.iotlabs.dashboard.literals.ContentType;
import spark.Response;
package org.iotlabs.dashboard.utils;


public class ResponseSetter {
    public static void setErrorResponse(Response errorResponse, BaseHttpException e) {
// Path: src/main/java/org/iotlabs/dashboard/httpexceptions/BaseHttpException.java
// public class BaseHttpException {
//     private int code;
//     private String body;
// 
//     BaseHttpException(int code, String body) {
//         this.code = code;
//         this.body = body;
//     }
// 
//     public int getCode() {
//         return code;
//     }
// 
//     public String getBody() {
//         return body;
//     }
// }
// 
// Path: src/main/java/org/iotlabs/dashboard/literals/ContentType.java
// public class ContentType {
//     public static final String JSON = "application/json";
//     public static final String HTML = "text/html";
// }


// Path: src/main/java/org/iotlabs/dashboard/utils/ResponseSetter.java
import org.iotlabs.dashboard.httpexceptions.BaseHttpException;
import org.iotlabs.dashboard.literals.ContentType;
import spark.Response;

package org.iotlabs.dashboard.utils;


public class ResponseSetter {
    public static void setErrorResponse(Response errorResponse, BaseHttpException e) {
        errorResponse.type(ContentType.HTML);