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.

Scenario Page AJAX rough AJAX alert AJAX card
Exception Open
Internal error Open

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 page
Controller action that does not exist

Routes to this controller with an unknown action and should end as 404.

Open missing action
Wrong HTTP method: GET on POST

Calls a POST-only action with GET and should end as 405.

Open with GET
Wrong 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 exception

HTTP 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
100100Continue
101101Switching Protocols
102102Processing
103103Early Hints
300300Multiple Choices
301301Moved Permanently
302302Found
303303See Other
304304Not Modified
307307Temporary Redirect
308308Permanent 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