def METHOD_NAME(self, client):
    url = "/tasks/imnotauuid"
    headers = {"Content-Type": "application/json"}
    response = client.get(url, headers=headers)
    assert response.status_code == 400
    response_json = response.get_json()
    assert "error" in response_json