httpd: fix socket error on 404