fixed 404 to set appropriate status code