Always return if 404 to avoid exceptions about already committed response.
Improved behaviour of ws clients on close/reload, should fix several issues in Firefox creating multiple new ws connections when server is up again.