Commit a02bb169 authored by Janos Guljas's avatar Janos Guljas

improve comment for jsonhttp.StatusResponse

parent 5ec4f25e
......@@ -26,6 +26,9 @@ var (
// Code field corresponds with HTTP status code, and Message field is a short
// description of that code or provides more context about the reason for such
// response.
//
// If response is string, error or Stringer type the string will be set as
// value to the Message field.
type StatusResponse struct {
Message string `json:"message,omitempty"`
Code int `json:"code,omitempty"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment