Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def handle_400(request):
return muffin.Response(text='Custom 400', status=400)
def handle_404(request):
return muffin.Response(text='Custom 404', status=404)
def handle_500(request):
return muffin.Response(text='Custom 500')
def handle404(request):
""" Handle HTTP exceptions. """
return muffin.Response(text='Custom 404 Page', status=404)