It's not possible as far as I know as the error pages don't use a template as such.
They are done as a responseMessage which doesn't have a wrapper.
For example, this is the HTML: <div id="content" class="">
Note how there is no class, which is typically where the template name would be.