We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee11b26 commit 97721fbCopy full SHA for 97721fb
lib/router/sequential.js
@@ -2,22 +2,22 @@ const Trouter = require('trouter')
2
const qs = require('fast-querystring')
3
const next = require('./../next')
4
5
-const status404 = {
+const STATUS_404 = {
6
status: 404
7
}
8
-const status500 = {
+const STATUS_500 = {
9
status: 500
10
11
12
module.exports = (config = {}) => {
13
if (!config.defaultRoute) {
14
config.defaultRoute = () => {
15
- return new Response(null, status404)
+ return new Response(null, STATUS_404)
16
17
18
if (!config.errorHandler) {
19
config.errorHandler = (err) => {
20
- return new Response(err.message, status500)
+ return new Response(err.message, STATUS_500)
21
22
23
0 commit comments