getResponse().setStatus(getStatusCode());
getResponse().setStatus(getStatusCode()); super.sendResponse(output);
   public void sendResponse(Representation output) throws IOException   {   	// Add the response headers      Parameter header;      for(Iterator<Parameter> iter = getResponseHeaders().iterator(); iter.hasNext();)      {         header = iter.next();         getResponse().addHeader(header.getName(), header.getValue());      }      // Set the status code in the response. We do this after adding the headers because       // when we have to rely on the 'sendError' method, the Servlet containers are expected      // to commit their response.   	if(Status.isError(getStatusCode()))   	{   		try			{				getResponse().sendError(getStatusCode(), getReasonPhrase());			}			catch (IOException ioe)			{				logger.log(Level.WARNING, "Unable to set the response error status", ioe);			}   	}   	else   	{   		getResponse().setStatus(getStatusCode());   	}   	   	// Send the response output   	super.sendResponse(output);   }