How to return an HTTP status code to the user in .NET

xiaoxiao2021-03-06  122

In an ASP.NET application, in order to be safe, it is necessary to use only for registered user services, and the non-registered user will reject the service, while returning to the HTTP status code prompts non-registered users do not exist. After reviewing the relevant information, find the following ways to resolve: ... response.statuscode = 400; // does not exist response.end (); return; ......

转载请注明原文地址:https://www.9cbs.com/read-100127.html

New Post(0)