private String constructHttpHeader(int code, int fileType) {
		String s = "HTTP/1.0 ";

		switch (code) {
		case 200:
			s = s + "200 OK";
			break;
		case 400:
			s = s + "400 Bad Request";
			break;
		case 403:
			s = s + "403 Forbidden";
			break;
		case 404:
			s = s + "404 Not Found";
			break;
		case 500:
			s = s + "500 Internal Server Error";
			break;
		case 501:
			s = s + "501 Not Implemented";
			break;
		}

		s = s + "\r\n";
		s = s + "Connection: close\r\n";
		s = s + "Server: WTBBackend GPS Input\r\n"; // server name

		switch (fileType) {
		case 0:
			break;
		default:
			s = s + "Content-Type: text/html\r\n";
			break;
		}

		s = s + "\r\n";
		return s;
	}