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 460 posts 1066 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.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies