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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Return HTTP Status Codes (200, 201, 400, 500) from a Custom X++ Service API

(1) ShareShare
ReportReport
Posted on by 483
Hello Everyone,
 
I have created a custome Service API in D365FO, I want this custom API to return proper HTTP status code such as 200,201,400 and 500 based on the result of the operation
however I think that x++ not direct support controlling HTTP status codes in this way if you have implemented something similar before could you please share your suggestion or best practice? Is possible to use C# code within X++ ! to achive the goal?


Thank you for your suggestion
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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 584 Super User 2025 Season 2

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 428 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 331 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans