From e0ca0b16ab99c7a44dcbfade85bc9d588d6dceb7 Mon Sep 17 00:00:00 2001 From: eeonevision Date: Mon, 25 Nov 2019 11:35:11 +0300 Subject: [PATCH] Added custom http status code to context's render --- context.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/context.go b/context.go index 4bbd41d3..bbf1fc03 100644 --- a/context.go +++ b/context.go @@ -39,6 +39,8 @@ const ( const abortIndex int8 = math.MaxInt8 / 2 +const httpStatusClientClosedRequest = 499 + // Context is the most important part of gin. It allows us to pass variables between middleware, // manage the flow, validate the JSON of a request and render a JSON response for example. type Context struct {