ASP.NET Rzuć nieautoryzowany wyjątek
throw new HttpResponseException(HttpStatusCode.Unauthorized);
Good Goose
throw new HttpResponseException(HttpStatusCode.Unauthorized);