exceptions.py 235 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 class ImmediateHttpResponse(Exception): """ This exception is used to interrupt the flow of processing to immediately return a custom HttpResponse. """ def __init__(self, response): self.response = response