Temporary Error
The temporary error command is used to test a temporary error condition.
A temporary error typically occurs when Domain Master is unable to forward your request to the appropriate central registry.
JSON
HTTP request...
http request:
POST /masterapi/server.php HTTP/1.0
Host: reseller.forpsi.hu
Content-Type: text/plain; charset=UTF-8
Content-Length: 41
Authorization: Basic R1I6VE9NRUs6dG90b19hc2lfbmVuaV9oZXNsbw==
{"command":"temporary error","params":[]}
...and the response:
HTTP/1.0 200 OK
Date: Tue, 24 Sep 2013 11:52:13 GMT
Server: Apache
Content-Length: 121
Connection: close
Content-Type: text/json; charset=UTF-8
{"status":"temporary error","message":"oops, a temporary error has occurred.... in fact this is just a testing response"}
YAML
HTTP request...
POST /masterapi/server.php HTTP/1.0
Host: reseller.forpsi.hu
Content-Type: text/plain; charset=UTF-8
Content-Length: 41
Authorization: Basic R1I6VE9NRUs6dG90b19hc2lfbmVuaV9oZXNsbw==
---
command: temporary error
params: []
...and the response:
HTTP/1.0 200 OK
Date: Tue, 24 Sep 2013 11:53:20 GMT
Server: Apache
Content-Length: 118
Connection: close
Content-Type: text/plain; charset=UTF-8
---
status: temporary error
message: oops, a temporary error has occurred.... in fact this is just a testing response
PHP Client
<?php
$result = $client->sendCommand("temporary error");
$result->isSuccess(); // false
$result->isTemporaryError(); // true
echo $result->getMessage(); // "oops, a temporary error has occurred.... in fact this is just a testing response"
print_r($result->getData()); // null