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
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