Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
7 subscribers
Views
1706 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
HTTP Query Smart Service
mohamedt808
over 8 years ago
Noticed that only for successful API call the smart service stores the response code. Where as for error scenarios no status code is stored. Any alternative??
OriginalPostID-237902
Discussion posts and replies are publicly visible
0
Kyle Skudlarek
Appian Employee
over 8 years ago
Is the desired behavior here to generate a status code for error scenarios?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Aaron Frank
Appian Employee
over 8 years ago
I had this same issue before where only the 200 status code came back and if an error occurred the status code was null. I ended up parsing the error info using split functions to pull out status code (and other information) as a temporary solution. I would check to see if your error code is returned in the error info first.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
phanibabuk
over 8 years ago
Hi,
After the service is called check to see what is the status code.
If the status code is not 200 then might be an error.
You may take an alternative path if the status code is not 200 and take appropriate action.
Hope this helps...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohamedt808
over 8 years ago
@kyle,
Yes , I was expecting that as mentioned in the documentation for this smart service.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel