Add type for StatusReason constants

This commit is contained in:
feihujiang 2015-12-03 19:12:01 +08:00
parent 51e7042295
commit ad10ca1da8

View File

@ -239,13 +239,13 @@ const (
// Details (optional): // Details (optional):
// "causes" - The original error // "causes" - The original error
// Status code 500 // Status code 500
StatusReasonInternalError = "InternalError" StatusReasonInternalError StatusReason = "InternalError"
// StatusReasonExpired indicates that the request is invalid because the content you are requesting // StatusReasonExpired indicates that the request is invalid because the content you are requesting
// has expired and is no longer available. It is typically associated with watches that can't be // has expired and is no longer available. It is typically associated with watches that can't be
// serviced. // serviced.
// Status code 410 (gone) // Status code 410 (gone)
StatusReasonExpired = "Expired" StatusReasonExpired StatusReason = "Expired"
// StatusReasonServiceUnavailable means that the request itself was valid, // StatusReasonServiceUnavailable means that the request itself was valid,
// but the requested service is unavailable at this time. // but the requested service is unavailable at this time.