File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
api/src/main/kotlin/filter Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import org.springframework.web.server.ServerWebExchange
1414import org.springframework.web.server.WebFilter
1515import org.springframework.web.server.WebFilterChain
1616import reactor.core.publisher.Mono
17+ import reactor.netty.channel.AbortedException
1718
1819@Component
1920class ErrorWebFilter (
@@ -45,6 +46,10 @@ class ErrorWebFilter(
4546 Snu4tException (errorMessage = throwable.body.title ? : ErrorType .DEFAULT_ERROR .errorMessage),
4647 )
4748 }
49+ is AbortedException -> {
50+ httpStatusCode = HttpStatus .GATEWAY_TIMEOUT
51+ errorBody = makeErrorBody(Snu4tException ())
52+ }
4853 else -> {
4954 log.error(throwable.message, throwable)
5055 httpStatusCode = HttpStatus .INTERNAL_SERVER_ERROR
You can’t perform that action at this time.
0 commit comments