protected void writeMediaNotReadable(final HttpServletResponse httpServletResponse) { SimpleStatusResponse simpleStatusResponse = new SimpleStatusResponse(); simpleStatusResponse.setResponseStatus(ResponseStatus.RESOURCE_NOT_FOUND); writeResponse(httpServletResponse, simpleStatusResponse); }
public void writeErrorResponse(final HttpServletResponse httpServletResponse, final Exception e) { SimpleStatusResponse simpleStatusResponse = new SimpleStatusResponse(); simpleStatusResponse.setResponseStatus(ResponseStatus.INTERNAL_ERROR); writeResponse(httpServletResponse, simpleStatusResponse); }