/
Response codes

Response codes

This section provides a list of common response codes provided from the Integration Hub and example reasons for the response code occurring.

Code

Description

Example

200

Success response

{
"CallStatus": {
"Success": true,
"Code": 0,
"Message": ""
},
"GUID": "c796686d-8c7d-47ce-abb9-d6e429eb6fef"
}

200

Failure response

Invalid body example:
{
"Response": 
{
"CallStatus": 
{
"Success": false,
"Code": 100,
"Message": "Cannot process json receipt A JSONObject text must begin with '{' at character 1"
}
}
}
Rejected Sales Order Cancellation Example:
{
"Response": 
{
"CallStatus": 
{
"Success": false,
"Code": 100,
"Message": "Error Submitting Sales Order Cancellation: 123 - Error. Sales Order does not exist."
}
}
}

401

Unauthorised

Incorrect API Key
{
"Message": "Authorization has been denied for this request."
}

404

Not found

Invalid service requested
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>404 - File or directory not found.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
<div class="content-container"><fieldset>
<h2>404 - File or directory not found.</h2>
<h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
</fieldset></div>
</div>
</body>
</html>

405

Method Not Allowed

Calling GET instead of POST for a POST service
{
"Message": "The requested resource does not support http method 'GET'."
}

415

Unsupported Media Type

Removed Content-Type Header/Included unsupported Content-Type header
{
"Message": "The request contains an entity body but no Content-Type header. The inferred media type 'application/octet-stream' is not supported for this resource."
}

403

Forbidden

Service not activated for use on the Integration Hub.

500

Internal Server Error

Removed Raw Header and provided no body
{
"Message": "An error has occurred."
}



Related content

Test Scenarios
Read with this
Response codes
More like this
Additional API points to note
Additional API points to note
Read with this
Header
More like this
iHub API Documentation
iHub API Documentation
Read with this
Header
More like this