DengiOnline

2018-04-26 03:00:20

ERRORS action

List of response codes and their descriptions

Whether the action was completed successfully or failed, the Client receives corresponding notification. The notification contains response code, responseindexand description.

Detailed description of response codes is contained on the page List of response codes and their descriptions

Request Parameters

To request the list of response codes you only need to send the standard set of the required parameters.

Response Parameters

The GSG System response in XML format apart from the basic parameters contains the following nodes:

Parameter

Description

Format

Tag "error" (which wraps a response code description) contains the following tags:

id

Notification number

integer

descr

Message text

string (255)

fatal The code tag of fatality: 
«y» — fatal code, request with identical parameters is not possible;
«n» — non-fatal code.
string (1)

Example request

 <?xml version="1.0" encoding="UTF-8"?>
<request>
    <action>errors</action>
    <project>1234</project>
    <timestamp>1358429001</timestamp>  
    <sign>f511d60ccb6508fab9a6227e8500e23f</sign>
</request>

Example response (success)

 <?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>1</status>
    <reference>25233</reference>
    <timestamp>1358429003</timestamp>
    <errors>
         <error> 
            <descr>Success</descr> 
            <id>1</id> 
            <fatal>n</fatal>
        </error> 
        <error> 
            <descr>Operation in progress</descr> 
            <id>2</id> 
            <fatal>n</fatal>
        </error>
        ...
    </errors>
</response>

Example response (fail)

 <?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>14</status>
    <reference>25234</reference>
    <timestamp>1358429309</timestamp>
</response>