Skip to Content
0

REST Receiver HTTP 204 response code

Apr 21 at 05:25 AM

69

avatar image
Former Member

Hi @ll

I am working on a REST scneario, where data have to be sent asynchronously to a REST service, using POST operation.

In success case the service responds with HTTP 204 status code. Unfortunately PI interprets this as an error and the message gets into error status.

Is there a way to interpret this as successful message transfer?

I already checked Alexander's block regarding REST error handling.
https://blogs.sap.com/2015/04/10/pi-rest-adapter-custom-error-handling/

I tried

  • specific action on HTTP 204 -> ignore error based on "http status code"
  • ignore error for empty response based on "text Content"

Further I adjusted the scenario using the HTTP_AAE receiver adapter with parameter treatRespSuccess according to note 1952605.

So far all approaches failed.

Is there any solution for this issue?

thanks for your input, appreciate your help.

Best regards
Jochen

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers