Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Error Codes and response thrown by Increff System

Error Codes and response thrown by client system

This document is a part of 

Error Codes and response thrown by Increff System

In case of a 400 or 500 in the Assure system , the below JSON body will be thrown.

...

Case 2 : There are some systems which are unable to send 4xx and 5xx in case of any error happening in their systems. They can only send 200 HttpStatusCode with a payload. In these cases , they can send the following payload along with HttpStatus Code 200.

Code Block
languagejson
{ "hasError":true, "errorMessage":"Something"}

Note : This is not a general case. We don’t recommend going for Case 2. It should only be used in case the client system is not able to throw 4xx and 5xx in error scenarios.

...

The message which gets printed on the Assure WMS Increff screen.

"Error from channel : Something"

In case , Assure magic is not able to deserialize into a given payload. 

Then only the following message will be displayed in the Assure WMS screenIncreff screens.

"Error from channel : Unreadable message from channel with HttpCode : 4xx"

Http Status Code 5xx

In case there is an error thrown with 5xx HttpStatusCode. The process remains the same as the 4xx case. We would expect the following payload with 5xx HttpStatusCode.

Code Block
languagejson
{ "hasError":true, "errorMessage":"Something more"}

The message which gets printed on the Assure WMS screen.

...