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
Hi Peter,
You can configure your client to send the Accept header as "application/json" and you will get just the JSON.
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 :)
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