Updating an error to apierror

This commit is contained in:
nikhiljindal
2015-07-10 13:25:43 -07:00
parent 9c47e0d20c
commit 1517b66001
5 changed files with 36 additions and 3 deletions

View File

@@ -1708,6 +1708,12 @@ const (
// "causes" - The original error
// Status code 500
StatusReasonInternalError = "InternalError"
// StatusReasonServiceUnavailable means that the request itself was valid,
// but the requested service is unavailable at this time.
// Retrying the request after some time might succeed.
// Status code 503
StatusReasonServiceUnavailable StatusReason = "ServiceUnavailable"
)
// StatusCause provides more information about an api.Status failure, including