Using OnCustomResponseEvent in a ROSDK Server

Hi,

use the IROHTTPResponse.Code property:

aResponse.Code := 500;