Checking CustomErrors turned on in Code

c#, exception

Solution

I've figured out how to do it it's in...

HttpContext.Current.IsCustomErrorEnabled

Problem

Is it possible to check weather custom errors is turned on or off in the code on web application runtime.

Original source