@staticmethod
    def _error_response(error, descr=None):
        logger.error("%s" % error)
        response = ErrorResponse(error=error, error_description=descr)
        return Response(response.to_json(), content="application/json",
                        status="400 Bad Request")
dataset/ETHPy150Open rohe/pyoidc/src/oic/oauth2/provider.py/Provider._error_response/original