(int num, String s)
| 205 | } |
| 206 | |
| 207 | private void error(int num, String s) |
| 208 | { |
| 209 | s = "<html><h1>" + s + "</h1></html>"; |
| 210 | if(isHttp1) |
| 211 | { |
| 212 | pout.println("HTTP/1.0 " + num + " " + s); |
| 213 | pout.println("Content-type: text/html"); |
| 214 | pout.println("Content-length: " + s.length() + "\n"); |
| 215 | } |
| 216 | |
| 217 | pout.println(s); |
| 218 | } |
| 219 | } |
| 220 |