1 2 3 4 5 6 7 8 9 10
function handleRequest(request, response) { response.setStatusLine(request.httpVersion, 404, "Not found"); // Any valid JS. if (request.queryString == 'js') { response.setHeader("Content-Type", "text/javascript", false); response.write('4 + 4'); } }