1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/test/integration
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-aspath Fix linter (#5350) 2018-10-20 17:00:01 +02:00
app-document Invalidate cache for link[preload] in DEV (#6183) 2019-02-03 00:12:49 +00:00
babel Fix linter (#5350) 2018-10-20 17:00:01 +02:00
basic Implement circular JSON err.sh link (#6149) 2019-01-27 16:12:17 +01:00
cli Remove node-args in favor of NODE_OPTIONS environment variable (#5910) 2018-12-17 19:17:29 +01:00
client-404 Set default Error status code to 404 (#6276) 2019-02-12 21:32:25 -05:00
config Add module as server fallback main field (#6256) 2019-02-12 01:39:57 +01:00
custom-server Remove next/asset (#6046) 2019-01-14 01:32:20 +01:00
dist-dir Fix linter (#5350) 2018-10-20 17:00:01 +02:00
export Fix Runtime Config in next export (#6258) 2019-02-11 19:28:47 -06:00
filesystempublicroutes use native http instead of micro (#5706) 2018-11-19 16:36:18 +01:00
ondemand Implement websockets based on-demand-entries ping (#4508) 2018-12-14 12:25:59 +01:00
page-extensions Fix linter (#5350) 2018-10-20 17:00:01 +02:00
production Invalidate cache for link[preload] in DEV (#6183) 2019-02-03 00:12:49 +00:00
production-config Add test for generateBuildId (#5816) 2018-12-04 16:42:25 +01:00
serverless Export render instead of default for serverless target (#5979) 2019-01-02 14:59:28 +01:00
size-limit Add new limit for size 2019-01-11 23:57:38 +01:00
with-router Remove route event in componentWillUnmount (#6196) 2019-02-03 14:13:30 +01:00