EZP-21547: re-added the header call from error/view

The headers might be required since errors don't always
happen from content/view