def METHOD_NAME(self, request):
    decoder = WMS13Decoder(request.GET)
    exceptions = decoder.exceptions
    if exceptions in ("xml", "application/vnd.ogc.se_xml") or not HAS_PIL:
        return WMS13ExceptionXMLEncoder()
    elif exceptions in ("inimage", "blank"):
        return WMS13ExceptionImageEncoder(
            decoder.width, decoder.height, decoder.format, decoder.bgcolor,
            exceptions=="blank"
        )
    print (decoder.exceptions)