cancel
Showing results for 
Search instead for 
Did you mean: 

REST Receiver HTTP 204 response code

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

0 Kudos

Hi Mate, have you got any success in this? I am facing a similar trouble.

ankit_mishra09
Participant
0 Kudos

Hi Folks,

How was this handled?

Accepted Solutions (0)

Answers (0)