razor view exception bug - status code not set to 500 #787

wants to merge 1 commit into


None yet
2 participants

prabirshrestha commented Oct 14, 2012

started with a discussion at https://groups.google.com/forum/?fromgroups=#!topic/nancy-web-framework/hGvydkNnQ9w

If I add a view with the following code. the error handler will not be executed cause the status code is set to 200ok instead of 500.

@using System
    throw new NotImplementedException();

Will also need to add context.Items["ERROR_TRACE"] and context.Items["ERROR_EXCEPTION"]. Most likely even other view engines have this bug.

This PR does not contain the fix, but only a test showing how it fails.

This comment has been minimized.

Show comment Hide comment

prabirshrestha Dec 20, 2012


this is not a bug. so feel free to close it.


prabirshrestha commented Dec 20, 2012

this is not a bug. so feel free to close it.

@prabirshrestha prabirshrestha deleted the prabirshrestha:razorViewEngineExceptionStatusCodeBug branch Feb 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment