From 2f027ce853c08ae75dfa8cee3362e09bc112a192 Mon Sep 17 00:00:00 2001 From: Howl Date: Mon, 13 Jun 2016 21:47:35 +0200 Subject: [PATCH] Remove Message from 404 response, to allow easy distinction between missing method and data not found --- app/v1/404.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/v1/404.go b/app/v1/404.go index f9547ff..eadbf00 100644 --- a/app/v1/404.go +++ b/app/v1/404.go @@ -14,8 +14,7 @@ type response404 struct { func Handle404(c *gin.Context) { c.IndentedJSON(404, response404{ ResponseBase: common.ResponseBase{ - Code: 404, - Message: "Oh dear... that API request could not be found! Perhaps the API is not up-to-date? Either way, have a surprise!", + Code: 404, }, Cats: surpriseMe(), })