This works for errors at the origin or in a Worker, but won't for errors at the edge, because those are in front of Workers.