1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 18:40:49 +00:00

Update Documentation in Output.go

Fix Documentation for HTTP status codes descriptions.
This commit is contained in:
Pritesh Gudge 2017-12-21 13:50:28 +05:30 committed by GitHub
parent 80aa47f605
commit aac69674ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}