错误代码表

可参见各接口的错误码

服务器端错误

HTTP 状态码

错误代码

描述

语义

503

ServiceUnavailable

The request has failed due to a temporary failure of the server.

服务不可用。

500

InternalError

The request processing has failed due to some unknown error, exception or failure.

内部错误。

400

MissingParameter

The input parameter <parameter name> that is mandatory for processing this request is not supplied

缺少必填参数。

400

Forbidden

User not authorized to operate on the specified resource.

没有权限使用该操作,请检查 RAM 的子账户是否赋予邮件推送服务的权限。

权限名称:

  • AliyunDirectMailFullAccess:管理邮件推送(DirectMail)的权限

  • AliyunDirectMailReadOnlyAccess:只读访问邮件推送(DirectMail)的权限image

  • 通过RAM用户控制资源访问

400

Signature

Specified signature is not matched with our calculation

  • 此类错误通常是因为客户端计算的签名与服务端不一致导致。建议:

    • 检查代码中是否存在特殊字符(特别是邮件内容,尝试简短内容,如test)导致转码异常。

    • 检查请求参数顺序是否错误。

    • 检查服务器时间是否异常

    • 请求示例(Python3.6及以上)