return 404 when resource not found