mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: enforce container/FDK contract in dispatch (#1314)
1) FDK returned 200/502/504 codes now handled. 2) Container init timeout is now default to 5 seconds.
This commit is contained in:
@@ -138,6 +138,14 @@ var (
|
||||
code: http.StatusBadGateway,
|
||||
error: fmt.Errorf("error receiving function response"),
|
||||
}
|
||||
ErrFunctionFailed = err{
|
||||
code: http.StatusBadGateway,
|
||||
error: fmt.Errorf("function failed"),
|
||||
}
|
||||
ErrFunctionInvalidResponse = err{
|
||||
code: http.StatusBadGateway,
|
||||
error: fmt.Errorf("invalid function response"),
|
||||
}
|
||||
ErrRequestContentTooBig = err{
|
||||
code: http.StatusRequestEntityTooLarge,
|
||||
error: fmt.Errorf("Request content too large"),
|
||||
|
||||
Reference in New Issue
Block a user