- Home
- /
- Design
- /
- DMBBootstrapBuilder
- /
- Page alerts
- /
- Home
- /
- Page alerts
PageBuilder alert manager
This page exercises alerts, exceptions and HTTP status messages through Page.AlertManager.
Page Alerts
Error and exception rendering — full-page, AJAX alert and AJAX card modes.
Alert manager
Trigger exceptions and resets — compare the three rendering modes: full-page, AJAX alert and AJAX card.
Concrete scenarios
Real-world error scenarios — 404, 405, validation errors and voluntary exceptions.
Page that does not exist
Triggers the status-code pipeline and renders the PageBuilder 404 alert.
Open missing pageController action that does not exist
Routes to this controller with an unknown action and should end as 404.
Open missing actionWrong HTTP method: GET on POST
Calls a POST-only action with GET and should end as 405.
Open with GETWrong HTTP method: POST on GET
Submits to a GET-only action and should end as 405.
Invalid model: missing fields
Submits an empty form and renders all required-field errors.
Invalid model: wrong values
Submits bad values and renders validation-rule errors.
Voluntary exception
Throws an exception intentionally and lets the exception handler render the alert.
Throw exceptionHTTP status catalog
All handled HTTP status codes — open the full-page view or fire an AJAX request to see the rendered alert.
| Status | Kind | Reason |
|---|---|---|
| 100 | 100 | Continue |
| 101 | 101 | Switching Protocols |
| 102 | 102 | Processing |
| 103 | 103 | Early Hints |
| 300 | 300 | Multiple Choices |
| 301 | 301 | Moved Permanently |
| 302 | 302 | Found |
| 303 | 303 | See Other |
| 304 | 304 | Not Modified |
| 307 | 307 | Temporary Redirect |
| 308 | 308 | Permanent Redirect |
| Error | Page | AJAX | Reason |
|---|---|---|---|
| 400 | Open | Bad Request | |
| 401 | Open | Unauthorized | |
| 403 | Open | Forbidden | |
| 404 | Open | Not Found | |
| 405 | Open | Method Not Allowed | |
| 409 | Open | Conflict | |
| 410 | Open | Gone | |
| 418 | Open | I am a teapot | |
| 429 | Open | Too Many Requests | |
| 500 | Open | Internal Server Error | |
| 501 | Open | Not Implemented | |
| 502 | Open | Bad Gateway | |
| 503 | Open | Service Unavailable | |
| 504 | Open | Gateway Timeout |