code: public void writeHeader(Writer writer) 
          throws IOException
      {
          if (_state!=__MSG_EDITABLE)
              throw new IllegalStateException(__state[_state]+
                                              " is not EDITABLE");
          if (_header==null)
              throw new IllegalStateException("Response is destroyed");
  
          if (getHttpRequest().getDotVersion()>=0)
          {
              _state=__MSG_BAD;
              writer.write(_version);
              writer.write(' ');
              writer.write('0'+((_status/100)%10));
              writer.write('0'+((_status/10)%10));
              writer.write('0'+(_status%10));
              writer.write(' ');
              writer.write(getReason());
              writer.write(HttpFields.__CRLF);
              _header.write(writer);
          }
          _state=__MSG_SENDING;
      }
docs: /* --------------------------------------------------------------