georchestra / georchestra-gateway

GNU General Public License v3.0
0 stars 5 forks source link

adding customized error pages with a specific api for error handling #107

Closed marwanehcine closed 5 months ago

marwanehcine commented 6 months ago

adding customized error pages with a specific api for error handling (404, 403, 500, 501, 503) I have added a new CustomAccessDeniedHandler class to throw an exception when 403 is returned. Exception should be throw to be handled later by CustomErrorAttributes.java. (set error status and be redirected to correct html error page)

marwanehcine commented 5 months ago

If we now include the error pages directly into the gateway code, can we still override them through the datadir like in MEL: https://github.com/camptocamp/georchestra-mel-configuration/tree/k8s-master-dev/gateway/templates/error?

Yes, just we need to set correct path in prop file. image

Thanks

marwanehcine commented 5 months ago

@marwanehcine don't forget about my message above 😃: #107 (review)

tested then replied, Thanks