class StubResponseHeaderConfigurer {

    public void setErrorResponseContentTypeAndStatus(final HttpServletResponse resp) {
        resp.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
        resp.setContentType(MimeType.TEXT.getOfficialMimeType());
    }

}