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