Error Pages
Overview
Error pages are displayed when a visitor encounters a navigation problem. BWEB allows you to customize these pages to maintain a consistent experience.
Configurable Error Pages
| Code | Name | Displayed when |
|---|---|---|
| 400 | Bad Request | Malformed request or invalid parameters |
| 401 | Unauthorized | Authentication required but not provided |
| 403 | Forbidden | The user does not have the required permissions |
| 404 | Page Not Found | The requested URL does not exist |
| 500 | Server Error | Internal 4D server error |
Customization
Each error page is built like a standard BWEB page in the Dev Panel. You can add:
- An explanatory message tailored to your audience
- A link to the home page
- A search form
- Links to the main pages of the site
Technical Operation
When an error occurs, BSPK_WEB_ON_CONNECTION looks for the corresponding error page in the BSPK_WEB_DOMAIN_MENU table. If no custom page exists, a generic error page is displayed.
Best Practices
- Customize at least the 404 page (the most common)
- Keep a design consistent with the rest of the site (same header/footer)
- Always provide a way to return to normal navigation
- Avoid technical messages that are incomprehensible to the end user

