Return 404 when resource not found.