Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John Bergman 483 posts 1132 karma points
    Feb 27, 2018 @ 06:20
    John Bergman
    0

    Set Error handler nodes in code? (instead of in umbracoSettings.config)

    in the umbracoSettings.config, you can set the error handlers like this:

    <errors>
      <error404>1380</error404>
    

    Anyone know how to set them in code? I have several that I would like to enable only in production and would rather have it in code instead of a .config file.

Please Sign in or register to post replies

Write your reply to:

Draft