Simple question this time, is there a way in ASP.NET to set a decimal value HTTP Status Code instead of the common int status code?
Example, I would like to set a “403.4 SSL required” instead of just a 403…
Thanks 🙂
** EDIT
The comments below pointed me in the right direction, I just needed to set the Response.SubStatusCode.
By the standard HTTP only defines 3 digit numeric result codes. What you are seeing is IIS specific, it is the sub-status code which can be set and read from the
HttpResponse.SubStatusCodeproperty.From MSDN: