Skip to content

Commit 07ba1fd

Browse files
KimMachineGunkisielk
authored andcommitted
Modify http status code to variable in README (#350)
* Modify http status code to variable * Modify doc * Modify README
1 parent d284fd8 commit 07ba1fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ func (amw *authenticationMiddleware) Middleware(next http.Handler) http.Handler
473473
next.ServeHTTP(w, r)
474474
} else {
475475
// Write an error and stop the handler chain
476-
http.Error(w, "Forbidden", 403)
476+
http.Error(w, "Forbidden", http.StatusForbidden)
477477
}
478478
})
479479
}

0 commit comments

Comments
 (0)