docs icon indicating copy to clipboard operation
docs copied to clipboard

Incorrect documentation regarding "Error Sanitization"?

Open nocin opened this issue 1 year ago • 4 comments

Hi @renejeglinsky,

I would just like to use this issue to reiterate the problem already described by @gregorwolf in the SCN community.

https://community.sap.com/t5/technology-q-a/incorrect-documentation-regarding-quot-error-sanitization-quot/qaq-p/12710155

The documentation and the behavior of the CAP framework do not seem to be entirely consistent in regard to "Error Sanitization".

As a current workaround, if I want to display an error message in the frontend, I always set the http code to 4xx instead of 5xx, even if this is not actually correct.

Best regards, Nico

nocin avatar Apr 23 '24 11:04 nocin

Hi @nocin , I'm already in touch with our Node.js runtime team and will get back to you. All the best, René

renejeglinsky avatar Apr 29 '24 08:04 renejeglinsky