Skip to content

Commit dfac240

Browse files
Update CodeBehindExecute.cs
1 parent 95342b0 commit dfac240

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

class/CodeBehindExecute.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ public string RunErrorPage(int ErrorValue, HttpContext context)
265265
CodeBehindOptions option = new CodeBehindOptions();
266266
string path = option.ErrorPagePath.Replace("{value}", ErrorValue.ToString());
267267

268+
context.Response.StatusCode = ErrorValue;
269+
268270
return Run(context, path);
269271
}
270272

0 commit comments

Comments
 (0)