Improve error reporting for MSS sending

[MAILPOET-1445]
This commit is contained in:
Pavel Dohnal
2018-07-10 12:42:14 +01:00
parent 42b353fa59
commit 27b9857e6a
7 changed files with 217 additions and 17 deletions

View File

@@ -16,6 +16,10 @@ class API {
const RESPONSE_CODE_KEY_INVALID = 401;
const RESPONSE_CODE_STATS_SAVED = 204;
const RESPONSE_CODE_TEMPORARY_UNAVAILABLE = 503;
const RESPONSE_CODE_NOT_ARRAY = 422;
const RESPONSE_CODE_PAYLOAD_TOO_BIG = 413;
const RESPONSE_CODE_PAYLOAD_ERROR = 400;
private $api_key;
@@ -140,4 +144,4 @@ class API {
);
return WPFunctions::wpRemotePost($url, $params);
}
}
}