Use 429 to indicate timeout errors
This commit is contained in:
@@ -301,5 +301,12 @@ function statusFromErrorMessage(errMsg) {
|
||||
statusCode = 404;
|
||||
}
|
||||
}
|
||||
else if ( -1 !== errMsg.indexOf('Render timed out') ) {
|
||||
statusCode = 429; // under discussion
|
||||
}
|
||||
else if ( -1 !== errMsg.indexOf('canceling statement due to statement timeout') ) {
|
||||
statusCode = 429; // under discussion
|
||||
}
|
||||
|
||||
return statusCode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user