commit
1ef1595465
2 changed files with 4 additions and 4 deletions
|
@ -5,12 +5,12 @@
|
|||
{{book.project.name}} has some error handling facilities for servlet based client adapters.
|
||||
When an error is encountered in authentication, {{book.project.name}} will call `HttpServletResponse.sendError()`.
|
||||
You can set up an error-page within your `web.xml` file to handle the error however you want.
|
||||
{{book.project.name}} may throw 400, 401, 403, and 500 errors.
|
||||
{{book.project.name}} can throw 400, 401, 403, and 500 errors.
|
||||
|
||||
[source,xml]
|
||||
----
|
||||
<error-page>
|
||||
<error-code>404</error-code>
|
||||
<error-code>403</error-code>
|
||||
<location>/ErrorHandler</location>
|
||||
</error-page>
|
||||
----
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
{{book.project.name}} has some error handling facilities for servlet based client adapters.
|
||||
When an error is encountered in authentication, the client adapter will call `HttpServletResponse.sendError()`.
|
||||
You can set up an `error-page` within your `web.xml` file to handle the error however you want.
|
||||
The client adapter may throw 400, 401, 403, and 500 errors.
|
||||
The client adapter can throw 400, 401, 403, and 500 errors.
|
||||
|
||||
|
||||
[source,xml]
|
||||
----
|
||||
<error-page>
|
||||
<error-code>404</error-code>
|
||||
<error-code>403</error-code>
|
||||
<location>/ErrorHandler</location>
|
||||
</error-page>
|
||||
----
|
||||
|
|
Loading…
Reference in a new issue