If you are talking about the login_required decorator, there is no reason why you should use this. You can write a similar decorator that did what you need (return 403 answer).
Unfortunately, the login_required decorator code is actually a bit complicated, so it would not be easy to copy or modify for your needs, as part of the redirection is actually in the user_passes_test function that they use.
source share