Skip to Content
2
Former Member
Apr 21, 2018 at 05:25 AM

REST Receiver HTTP 204 response code

1437 Views

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