I made a custom handler404 for a authenticated Django website to avoid information leakage.
def check_logged_in_404(request): \"\"\" Custom 404. Show fr
I finally found why the returned status code didnt work. Instead of setting a header message, it simply is:
response.status_code = 404
Nevertheless, the code suggested by PiotrLegnica definitely wins on simplicity, readability and beauty .. The badge still stands ;)
Regards,
Gerard.