cancel
Showing results for 
Search instead for 
Did you mean: 

XI: self defined HTTP Response Codes possible?

Former Member
0 Kudos

Hello together,

i have an synch BPM scenario. If the BPM is ok, a normal HTTP Code 200 is given back to the sender system. But if an error happens a TIMEOUT will occur.

My idea was to create an own HTTP code with an own HTTP reason. Is this possible in the customizing or do i have to develop a new program in the XI / PI?

Many thanks

alex

Accepted Solutions (0)

Answers (2)

Answers (2)

prateek
Active Contributor
0 Kudos

HTTP is a protocol. The codes that are retreived are based on standards.

http://en.wikipedia.org/wiki/List_of_HTTP_status_codes

In my opinion, u cannot create ur own HTTP code. But u may create ur own error message or alert according to ur requirement

Regards,

Prateek

Former Member
0 Kudos

hello together,

ok, self defining will not work. but what is to modify the error reason for special error codes?

instead of HTTP 400 Bad Request, HTTP 400 "silly error" or additional information in the HTTP 400 Bad Request - "silly error"??

regards

alex

prateek
Active Contributor
0 Kudos

The error codes and their description are standard and cannot be modified.

U should create ur custom errors using excepion handling at XI or at the required sender/ receiver system.

Regards,

Prateek

Former Member
0 Kudos

Hi Alex!

I think, this is not needed. First, I'm not sure, but doesn;t have timeout it's own return code? Second, I think it will be enough just to create exception branch in block and it will be cought..

Peter