From aac69674ad2c3258847fc7f0becbd191da63d3fc Mon Sep 17 00:00:00 2001 From: Pritesh Gudge Date: Thu, 21 Dec 2017 13:50:28 +0530 Subject: [PATCH] Update Documentation in Output.go Fix Documentation for HTTP status codes descriptions. --- context/output.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/context/output.go b/context/output.go index 61ce8cc7..ef8be8c6 100644 --- a/context/output.go +++ b/context/output.go @@ -325,13 +325,13 @@ func (output *BeegoOutput) IsForbidden() bool { } // IsNotFound returns boolean of this request is not found. -// HTTP 404 means forbidden. +// HTTP 404 means not found. func (output *BeegoOutput) IsNotFound() bool { return output.Status == 404 } // IsClientError returns boolean of this request client sends error data. -// HTTP 4xx means forbidden. +// HTTP 4xx means client error. func (output *BeegoOutput) IsClientError() bool { return output.Status >= 400 && output.Status < 500 }