http codes, cleanup logging, test latency handler