mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: handle client connection close errors (#1196)
This commit is contained in:
@@ -18,6 +18,11 @@ var (
|
||||
code: http.StatusBadRequest,
|
||||
error: errors.New("Invalid JSON"),
|
||||
}
|
||||
ErrClientCancel = err{
|
||||
// The special custom error code to close connection without any response
|
||||
code: 444,
|
||||
error: errors.New("Client cancelled context"),
|
||||
}
|
||||
ErrCallTimeout = err{
|
||||
code: http.StatusGatewayTimeout,
|
||||
error: errors.New("Timed out"),
|
||||
|
||||
Reference in New Issue
Block a user