+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Set 500 code manually for error page

Set 500 code manually for error page

2 posts, 0 answered
  1. Isaac
    Isaac avatar
    63 posts
    Registered:
    01 Dec 2008
    16 May 2011
    Link to this post
    How would I go about setting up the Response.StatusCode = 500 in a sitefinity page.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    16 May 2011
    Link to this post
    Hello Isaac,

    You should be able to do this with a custom HttpHandler where you can set

    Response.Status = "some value"; 
    // optional
    Response.Addheader("Location", "some url");


    Best wishes,
    Ivan Dimitrov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered