fix example statusCode

This commit is contained in:
HorizonCode 2023-05-10 14:25:17 +02:00
parent f908e383cd
commit b2c2ff84fe

View File

@ -3,7 +3,7 @@ import { HTTPServer } from "../http_server.ts";
const httpServer = new HTTPServer();
httpServer.add("GET", "/", (_req, rep) => {
rep.statusCode = 200;
rep.statusCode = Status.Teapot;
rep.addHeader("working", "true")
return JSON.stringify(
{