Clean up shuld not be in the mapToRes.
PASS: WebServer.mapToRes() use ["reason"]

PASS: agent_server.WebServer.mapToRes() use reasonPhrase from ["reason"]
if set
.mapToRes() use data from ["body"]

PASS: agent_server.WebServer.mapToRes() use data from ["body"]
.mapToRes() use text from ["body"]

PASS: agent_server.WebServer.mapToRes() use text from ["body"]
.mapToRes() use headers from ["http"].

PASS: agent_server.WebServer.mapToRes() use headers from ["http"].
.cleanResMap() takes a map and returns a map

PASS: agent_server.WebServer.cleanResMap() takes a map and returns a map
.cleanResMap() if !["code"] then 418 I'm a teapot

PASS: agent_server.WebServer.cleanResMap() if ["code"] is not set use
418 I'm a teapot