Fix 501/404 in http server.