protected void completeHeaders() {
		if(! statusSent) throw new IllegalStateException("Must send status " +
			"before headers");
		if(headersSent)
			throw new IllegalStateException("Headers already completed");
		
		try { out.write("\r\n".getBytes()); }
		catch (IOException e) { e.printStackTrace(); }
		
		headersSent = true;
	}