core instrumentation: fix hostname for events
Websockets HTTP routing: improve error handling

Fixed a bug which caused the HTTP server to throw confusing exceptions
when it couldn't find a requested path.