

def invalid_content_type(self, request=None, response=None):
    'Returns the content type that should be used by default on validation errors'
    if callable(response.invalid_outputs.content_type):
        return self.invalid_outputs.content_type(request=request, response=response)
    else:
        return self.invalid_outputs.content_type

dataset/ETHPy150Open timothycrosley/hug/hug/interface.py HTTP.invalid_content_type/VarMisuse@23/52 `self`->`response`