mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
8 lines
191 B
JavaScript
8 lines
191 B
JavaScript
|
getInitialProps = (code)=>{
|
||
|
let statusCode, message;
|
||
|
return code && (statusCode = code), message = 404 === statusCode ? "404" : "500", {
|
||
|
statusCode,
|
||
|
message
|
||
|
};
|
||
|
};
|