web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

SysHttpCommunicationClient getting response on error

(0) ShareShare
ReportReport
Posted on by 15
I'm using the SysHttpCommunicationClient to call a restful service and get a response. I get a HttpResponseMessage as expected when the call is successful but the response message is null on an unsuccessful call, such as a status 400 (bad request). Instead an exception of type System.Exception is being thrown. 
 
There is a response message being sent back as I can see it in Postman.  The response message contains information about what was wrong with the request, such as what field was invalid. I'd like to be able to get the response message on an error status so I can share the information with the user. 
 
How can a the HttpResponsemessage when the service returns a status other than 200?
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 93

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans