From 07ba1fd60e210dc5cc6f86ec25dc9ecc7c95c295 Mon Sep 17 00:00:00 2001 From: Geon Kim Date: Mon, 26 Feb 2018 14:11:51 +0900 Subject: [PATCH] Modify http status code to variable in README (#350) * Modify http status code to variable * Modify doc * Modify README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e56cdb3..ad24249 100644 --- a/README.md +++ b/README.md @@ -473,7 +473,7 @@ func (amw *authenticationMiddleware) Middleware(next http.Handler) http.Handler next.ServeHTTP(w, r) } else { // Write an error and stop the handler chain - http.Error(w, "Forbidden", 403) + http.Error(w, "Forbidden", http.StatusForbidden) } }) }