use of writeJsonRespStructured is preferable. it api exists due to historical reason
err.message is used as internal message for ApiError object in resp
type Response struct {
Code int `json:"code,omitempty"`
Status string `json:"status,omitempty"`
Result interface{} `json:"result,omitempty"`
Errors []*util.ApiError `json:"errors,omitempty"`
}