Pass copy of error list instead of direct reference

At least partially fixes #324

The wsgi server is allowed to modify header list passed in as it chooses, and we do not wish the internal global list to be modified, so a copy should be passed in instead.