Unverified Commit 0bcd1fc3 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Mirror actual /_error behavior in documentation

parent d483fa49
...@@ -1685,7 +1685,7 @@ function Error({ statusCode }) { ...@@ -1685,7 +1685,7 @@ function Error({ statusCode }) {
} }
Error.getInitialProps = ({ res, err }) => { Error.getInitialProps = ({ res, err }) => {
const statusCode = res ? res.statusCode : err ? err.statusCode : null const statusCode = res ? res.statusCode : err ? err.statusCode : 404
return { statusCode } return { statusCode }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment