How to configure pasoe not to return html-page when status 4

Posted by pieter.brouwer on 12-Nov-2018 14:40

Hi,

I was wondering if it is possible to just let spring return 401 and not the whole html-page that is currently returned (aparently by default)?

With kind regards,

Pieter

All Replies

Posted by Irfan on 12-Nov-2018 16:08

Hi Peter,

You can configure your client to send the Accept header as "application/json" and you will get just the JSON.

Posted by pieter.brouwer on 13-Nov-2018 09:47

Hi Irfan,

I was hoping that I would be able t do this from within my own Progress-code, but this is an answer on my question nevertheless :)

Posted by brianlafertewk on 13-Nov-2018 12:51

Pieter,

You can modify the WEB-INF/jsp/errorPage.jsp file for the Web App to generate the output as you wish.  The Accept header logic is the default behavior the file uses.  The code is simple JSP and pretty simple to modify.

Hope this helps,

Brian

This thread is closed