webrecorder / wabac.js

wabac.js - Web Archive Browsing Augmentation Client
https://replayweb.page
GNU Affero General Public License v3.0
96 stars 16 forks source link

Improved 'not found' message based on resource type #183

Closed ikreymer closed 1 month ago

ikreymer commented 1 month ago

Previously, an HTML 404 page was returned for all not found errors. This adjusts that to return a potentially more type-appropriate error message, which may improve fidelity (eg. reduce syntax errors where HTML is parsed as JSON) by returning error messages in appropriate type. Thus far, HTML, CSS, JS and JSON error messages are supported.

Also - tweak the about:blank response to make it more compatible, removing <!doctype html> which is not part of standard about:blank