At this time IWS does not process payload (i.e. output parameters) on
error HTTP status codes. This will change in the near future.

"WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx> wrote on 06/24/2019 04:32:10

From: Stephen Piland <Stephen@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: "web400@xxxxxxxxxxxxxxxxxx" <web400@xxxxxxxxxxxxxxxxxx>
Date: 06/24/2019 04:32 PM
Subject: [EXTERNAL] [WEB400] IWS Rest Post, Response Code, and Best
Practices on Error
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx>

For more info, see thread below in link..

I have a POST created in IWS that has a struct (JSON) as an Input
parameter. It also uses httpStatus, and httpHeaders. We also
return 2 character messages. When everything is goes well, we
return 200 and in the 'body' that is returned, we receive the
contents of successMessage and errorMessage in JSON formats.

We've tried to add validation on say items and locations in the
Order (JSON) struct before actually doing anything in the code. I
was thinking we could set the httpStatus to 4xx, set errorMessage to
some string, and IWS would return the errorMessage just like if 2xx.
We don't seem to get anything back in the response.

Any thoughts? Thanks.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.