[
https://issues.jboss.org/browse/TEIID-3690?page=com.atlassian.jira.plugin...
]
Ramesh Reddy commented on TEIID-3690:
-------------------------------------
Adding a custom page is of no use to the user. These services are not supposed to be for
the consumption of the end user, but an application. So far we have depended upon the
status code of the response to determine the success or failure of the request, to add
detail, we can return error description in XML or JSON form like
{code}
<error>
<code>404</code>
<message>something went terribly wrong</message>
<details>may be stacktrace?</details>
</error>
{code}
similarly in the JSON, the type of error message need to depend upon the the
"accepts" header, just like the request does and default is set to
"application/xml" now.
Add a custom error page for rest war
------------------------------------
Key: TEIID-3690
URL:
https://issues.jboss.org/browse/TEIID-3690
Project: Teiid
Issue Type: Quality Risk
Affects Versions: 8.12
Reporter: Kylin Soong
Assignee: Kylin Soong
Fix For: 8.12
Attachments: error-404.png, error-500.png
As attached pictures:
* Technical details are displayed when Exception occurs, which is not valuable to End
User.
* JBoss Web version be displayed as error page title and in foot, some users think this
have security risk.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)