Checks the `Accept` header for 404 responses. If HTML is not preferred, a plain text 404 is returned, avoiding the `_default_404.sql` processing. HTML-preferring clients continue to receive the custom SQL-based 404 page.
also: better error messages in tests