public static HttpErrorResponse badRequest(String msg) {
        return new HttpErrorResponse(BAD_REQUEST, ErrorCode.BAD_REQUEST.name(), msg);
    }
@Test
    public void testThatHttpErrorResponseProvidesCorrectErrorMessage() throws IOException {
        HttpErrorResponse response = HttpErrorResponse.badRequest("Error doing something");
        HandlerTest.assertHttpStatusCodeErrorCodeAndMessage(response, BAD_REQUEST, HttpErrorResponse.ErrorCode.BAD_REQUEST, "Error doing something");
    }