Skip to Content
avatar image
Former Member

REST Receiver HTTP 204 response code

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers