fix: Show descriptive message for 406 errors instead of generic text

When a route requires _format: html and is accessed via custom_elements format, Drupal returns a 406. The error page previously showed the generic "A client error happened" from core's Http4xxController.

Now shows "This page is not available in custom elements format." for 406 errors. Also fixes reading _exception_statuscode from query params instead of request attributes (where core sets it).

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Closes #3579385

Merge request reports

Loading