asp.net mvc - Get Http Status Code and Status Description in Custom Error Page -


where set http status code , http status description in "handleunauthorizedrequest" method of custom authorizeattribute, can in error page. have error pages different status codes.

example: if user not authorized access resource, setting http status code 403 , description says permissions needed access resource. hence, when user redirect 403 custom error page, can show description.

is there way set except in tempdate or viewdata?

i want same in custom authorize attribute of web api.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

android - Unable to generate FCM token from dynamically instantiated Firebase -