default 404 and fix response headers