func concludeRequest(c *gin.Context, resp interface{}, err *HttpError) {
	if err == nil {
		c.JSON(http.StatusOK, resp)
	} else {
		err.Abort(c)
	}
}
// concludeRequest responds with JSON of given response or aborts the request with the given error.
concludeRequest responds with JSON of given response or aborts the request with the given error.
// concludeRequest responds with JSON of given response or aborts the request with the given error .
func concludeRequest(c *gin.Context, resp interface{}, err *HttpError) {
	if err == nil {
		c.JSON(http.StatusOK, resp)
	} else {
		err.Abort(c)
	}
}
func concludeRequest ( c * gin . Context , resp interface { } , err * HttpError ) { if err == nil { c . JSON ( http . StatusOK , resp ) } else { err . Abort ( c ) } }
concludeRequest responds with JSON of given response or aborts the request with the given error.
concludeRequest responds with JSON of given response or aborts the request with the given error .