Unauthorized (401) Failed Status

The response content contains error message. The error data is either single object type or a license details type object. If the response header contains a custom variable named "X-License-Error" then it means the response content contains license error details. Samples reposnse of each type is below.

Response Formats for the returned data of single object type

application/json, text/json

Sample:

{
  "message": "sample string unauthorized error message."
}

application/xml, text/xml

Sample:

<Error>
  <Message>sample string unauthorized error message.</Message>
</Error>

Response Formats for the returned data of a license details type object

application/json, text/json

Sample:

{
  "ApplicationVersion": "2.8.2.704",
  "MachineName": "DAVENCHI",
  "MachineHardwareID": "SSSS-XXXX-YYYY-ZZZZ-PPPP-QQQQ",
  "CustomValue": "b4ee378f-172a-471c-9f0c-16b5145d6cd3",
  "Organisation": "CapalabaBranch",
  "DataSource": "Capalabaserver\\SQLServer2017",
  "DBServerHardwareID": "6CV4-3456-8907-2345-6789-6669",
  "Database": "Abacus",
  "LicenseFile": {
    "StatusMessage": null,
    "ProductType": 2,
    "ExpiryDate": "2019-06-04T00:00:00-04:00",
    "DeactivationCode": null,
    "Deactive": false
  },
  "FailureMessage": "License validation failed!The product comparision failed. Please report an error to your system administrator or Fern Support."
}

application/xml, text/xml

Sample:

<LicenseDetails xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ApplicationVersion>2.8.2.704</ApplicationVersion>
  <MachineName>DAVENCHI</MachineName>
  <MachineHardwareID>SSSS-XXXX-YYYY-ZZZZ-PPPP-QQQQ</MachineHardwareID>
  <CustomValue>b4ee378f-172a-471c-9f0c-16b5145d6cd3</CustomValue>
  <Organisation>CapalabaBranch</Organisation>
  <DataSource>Capalabaserver\SQLServer2017</DataSource>
  <DBServerHardwareID>6CV4-3456-8907-2345-6789-6669</DBServerHardwareID>
  <Database>Abacus</Database>
  <LicenseFile>
    <ProductType>AbacusWeb2</ProductType>
    <ExpiryDate>2019-06-04T00:00:00-04:00</ExpiryDate>
    <Deactive>false</Deactive>
  </LicenseFile>
  <FailureMessage>License validation failed!The product comparision failed. Please report an error to your system administrator or Fern Support.</FailureMessage>
</LicenseDetails>