mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-13 02:42:14 +01:00
now using Gateway timeout status code in case of timeout
This commit is contained in:
@@ -115,8 +115,7 @@ func errorMiddleware() echo.MiddlewareFunc {
|
||||
case xerror.InvalidCode:
|
||||
httpErr = echo.NewHTTPError(http.StatusBadRequest, errMessage)
|
||||
case xerror.TimeoutCode:
|
||||
// TODO status
|
||||
httpErr = echo.NewHTTPError(http.StatusBadGateway, errMessage)
|
||||
httpErr = echo.NewHTTPError(http.StatusGatewayTimeout, errMessage)
|
||||
default:
|
||||
httpErr = echo.NewHTTPError(http.StatusInternalServerError, errMessage)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user