0

Is there any way that BizTalk treats response REST HTTP 201 status as 200 and not throws exceptions?

I've read that article TNWiki Article Spotlight - BizTalk Server: REST Services Error Handling, but the WebRequestInterceptor code is missing in there.

Dijkgraaf
  • 11,049
  • 17
  • 42
  • 54
Piotr Grudzień
  • 179
  • 3
  • 11
  • That Codeplex solution has moved to GitHub https://github.com/wmmihaa/REST-Start-Kit-for-BizTalk – Dijkgraaf Sep 19 '20 at 05:43
  • What version of BizTalk are you using, and what CU have you got installed? I have not encountered the 201 being a problem – Dijkgraaf Sep 19 '20 at 05:44
  • Not specific to Biztalk, but `201` is _not_ an error. Anything code starting with 2xx is a success. (with some asterisks). – Evert Sep 19 '20 at 05:49
  • @Dijkgraaf I use Biztalk 2020 without any CU. I was told that biztalk treats anything that isn't http 200 response as an exception. I'll check that and add more insight – Piotr Grudzień Sep 21 '20 at 07:03

1 Answers1

1

Actually I was wrong informed. Biztalk 2020 treats 20x codes as positive ones.

Piotr Grudzień
  • 179
  • 3
  • 11