httpd: fix error handling path