def METHOD_NAME():
    class FakeResponse(DictObject):
        def json(self):
            return self._json
    response = FakeResponse(
        status_code=501,
        headers={"content-type": "application/json;charset=utf-8"},
        reason="SchlumpError",
        text='{"reason":"it schlumped"}',
        _json={"reason": "it schlumped"},
        request=DictObject(
            url="http://foo.com/bar/bat",
            headers={"xyz": "pdq"},
            method="PUT",
            body="body",
        ),
    )
    pytest.raises(SynapseHTTPError, _raise_for_status, response, verbose=False)