code: protected OutputStream outputStream(String contentType, Map headers, int status) {
          try {
              RequestContext.setControllerResponse(new NopResponse(contentType, status));
  
              if (headers != null) {
                  for (Object key : headers.keySet()) {
                      if (headers.get(key) != null)
                          RequestContext.getHttpResponse().addHeader(key.toString(), headers.get(key).toString());
                  }
              }
  
              return RequestContext.getHttpResponse().getOutputStream();
          }catch(Exception e){
              throw new ControllerException(e);
          }
      }
docs: Use to send raw data to HTTP client.
  
  @param contentType content type
  @param headers set of headers.
  @param status status.
  @return instance of output stream to send raw data directly to HTTP client.