JavaioIOException javaioIOException 403 Forbidden

for setting custom HTTP response code use the following java service. This service has two inputs “statusCode” and “statusMessage”.

IDataCursor pipelineCursor = pipeline.getCursor();
String statusCode = IDataUtil.getString( pipelineCursor, “statusCode” );
String statusMessage = IDataUtil.getString( pipelineCursor, “statusMessage” );

Service.getHttpResponseHeader((Values)pipeline)
.setResponse(Integer.parseInt(statusCode), statusMessage);

pipelineCursor.destroy();

Thanks Rob and PU!

After I posted my question here I decided to open a new
discussion thread instead

Integration Server & Trading Networks: Development: Http
response - can status code and message be controlled ?

where I posted the same question. Please use this thread if
you want to add to the http response discussion, thanks.
Sorry for the confusion.

/Mikael.