If you need to configure a custom error page instead of the error page generated by Oracle REST Data Services (ORDS), then do the following:
defaults.xml file in the ORDS configuration folderdefaults.xml:
|
|
/path/to/error/pages/folder is the fully qualified path to a folder which contains files named with the following pattern {status}.html, where {status} is the HTTP status code that you wish to define a custom error page for./usr/local/share/ords/error-pages/ then create a file named 404.html in /usr/local/share/ords/error-pages/ and configure error.externalPath to point at /usr/local/share/ords/errro-pages/.