private String createHTTPResponseHeaders() {
    String toReturn = "";
    try {
      toReturn = responseBuilder.MakeResponseHeaders(ResponseCode, ResponseReason);
    } catch (Exception e) {
      toReturn = responseBuilder.MakeResponseHeaders(500, "Internal Server Error");
    }

    return toReturn;
  }
 private byte[] createHTTPResponseBody(DataOutputStream writer) throws IOException {
   if (ResponseCode != 200) {
     return new byte[0];
   }
   byte[] toReturn = responseBuilder.MakeResponseBody(writer);
   return toReturn;
 }