mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
parent
2a9b733715
commit
3c4e690d1f
|
@ -4,6 +4,8 @@ import HTTPStatus from 'http-status'
|
|||
import Head from 'next-server/head'
|
||||
|
||||
export default class Error extends React.Component {
|
||||
static displayName = 'ErrorPage'
|
||||
|
||||
static getInitialProps ({ res, err }) {
|
||||
const statusCode = res ? res.statusCode : (err ? err.statusCode : null)
|
||||
return { statusCode }
|
||||
|
|
Loading…
Reference in a new issue