fn: container init timeout should be a 504 (#1329)

Too-Busy 503 is a retriable error, this error
should be 504 instead.
This commit is contained in:
Tolga Ceylan
2018-11-28 14:39:37 -08:00
committed by GitHub
parent 59a1d910a0
commit 1d34cc11a3
2 changed files with 50 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ var (
error: errors.New("Docker pull timed out"),
}
ErrContainerInitTimeout = err{
code: http.StatusServiceUnavailable,
code: http.StatusGatewayTimeout,
error: errors.New("Container initialization timed out, please ensure you are using the latest fdk / format and check the logs"),
}
ErrUnsupportedMediaType = err{