diff --git a/http/not_found.go b/http/not_found.go index 3328634..33e4705 100644 --- a/http/not_found.go +++ b/http/not_found.go @@ -5,11 +5,10 @@ import ( "net/http" ) -func (cfg *Config) NotFound(response http.ResponseWriter, request *http.Request) { +func (cfg *Config) NotFound(response http.ResponseWriter, request *http.Request) { data, _ := json.Marshal(map[string]string{ - "status": "404", + "status": "404", "message": "Not Found", - "link": "http://docs.ely.by/skin-system.html", }) response.Header().Set("Content-Type", "application/json") diff --git a/http/not_found_test.go b/http/not_found_test.go index 44c8a81..dfab394 100644 --- a/http/not_found_test.go +++ b/http/not_found_test.go @@ -22,7 +22,6 @@ func TestConfig_NotFound(t *testing.T) { response, _ := ioutil.ReadAll(resp.Body) assert.JSONEq(`{ "status": "404", - "message": "Not Found", - "link": "http://docs.ely.by/skin-system.html" + "message": "Not Found" }`, string(response)) }