def METHOD_NAME(url, verb, code, svc_client):
    """Check migration required failure."""
    # NOTE: the service always uses http error codes with no payload in case of unsupported verbs
    if verb == "POST":
        fn = svc_client.post
    elif verb == "GET":
        fn = svc_client.get
    elif verb == "WRONG_VERB":
        fn = svc_client.options
    response = fn(url)
    assert_rpc_response(response, "error")
    assert response.json["error"]["code"] == code