Actually this error is server error and you need also to handle it by setting the httpError also.
More information how you could handle the server error could be found for example in that blog post
I hope this information helps.
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal
and vote to affect the priority of the items