文章来源:http://www.imtr.cn/html/n166.html
您可以通过推送后返回的状态码和字段来判断数据是否推送成功。
1,状态码为200,表示推送成功,可能返回以下字段:
success 成功推送的url条数
remain 当天剩余的可推送url条数
not_same_site 由于不是本站url而未处理的url列表
not_valid 不合法的url列表
2,状态码为4XX或500,表示推送失败
常见的推送失败返回示例说明:
400 site error 站点未在站长平台验证
400 empty content post内容为空
400 only 2000 urls are allowed once 每次最多只能提交2000条链接
400 over quota 超过每日配额了,超配额后再提交都是无效的
401 token is not valid token错误
404 not found 接口地址填写错误
500 internal error, please try later 服务器偶然异常,通常重试就会成功
原文地址:http://www.imtr.cn/html/n166.html