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

CodeNameDisplayed when
400Bad RequestMalformed request or invalid parameters
401UnauthorizedAuthentication required but not provided
403ForbiddenThe user does not have the required permissions
404Page Not FoundThe requested URL does not exist
500Server ErrorInternal 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