diff --git a/http/not_found.go b/http/not_found.go index 33e4705..60e88de 100644 --- a/http/not_found.go +++ b/http/not_found.go @@ -9,6 +9,7 @@ func (cfg *Config) NotFound(response http.ResponseWriter, request *http.Request) data, _ := json.Marshal(map[string]string{ "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 dfab394..44c8a81 100644 --- a/http/not_found_test.go +++ b/http/not_found_test.go @@ -22,6 +22,7 @@ func TestConfig_NotFound(t *testing.T) { response, _ := ioutil.ReadAll(resp.Body) assert.JSONEq(`{ "status": "404", - "message": "Not Found" + "message": "Not Found", + "link": "http://docs.ely.by/skin-system.html" }`, string(response)) }