rsnext/packages/next/pages
Joe Haddad f43e1a95f1
Set default Error status code to 404 (#6276)
* Set default `Error` status code to 404

This is an appropriate default behavior because:

1. When the server encounters an error, the `err` property is set.
2. When the client-side application crashes, the `err` property is set.

This means the "only" way to render the `/_error` page without an error
is when a page is not found (special condition).

Fixes #6243
Closes #5437

* Add new integration test for client side 404

* single quotes

* Remove unused variable

* Standard needs to go away

* Whoops

* Check for null status code in res and err

* Only check response for valid statusCode
2019-02-12 21:32:25 -05:00
..
_app.js Revert #6030 (#6052) 2019-01-14 15:41:09 +01:00
_document.js Invalidate cache for link[preload] in DEV (#6183) 2019-02-03 00:12:49 +00:00
_error.js Set default Error status code to 404 (#6276) 2019-02-12 21:32:25 -05:00