1
我無法弄清楚如何在我的REST控件元素中設置響應代碼。在休息控制中設置響應代碼
這裏是REST控制的代碼。
<xe:restService id="restProfile" pathInfo="profile">
<xe:this.service>
<xe:customRestService
doGet="#{javascript:REST_PROFILE.doGet()}"
contentType="application/json"
doPost="#{javascript:REST_PROFILE.doPost(reqVar)}"
requestContentType="application/json" requestVar="reqVar">
</xe:customRestService>
</xe:this.service>
</xe:restService>
需求是在某些情況下返回代碼404,我不知道如何去做。
有誰知道如何使用SSJS來做到這一點?
的Domino版本9.0.1是
感謝@Knut。 我會接受它作爲答案,因爲它是我所懷疑的「一對一」。 –