def METHOD_NAME(
    http: type[httpretty.httpretty], uploader: Uploader
) -> None:
    http.register_uri(http.POST, "https://foo.com", status=400, body="Bad request")
    with pytest.raises(UploadError) as e:
        uploader.upload("https://foo.com")
    assert str(e.value) == "HTTP Error 400: Bad Request | b'Bad request'"