class HttpErrorResponse extends HttpResponse {

    public static HttpErrorResponse badRequest(String msg) {
        return new HttpErrorResponse(BAD_REQUEST, errorCodes.BAD_REQUEST.name(), msg);
    }

    public  HttpErrorResponse(int code, final String errorType, final String msg);

}