@Override
        public HttpResponse handleException(ServiceRequestContext ctx, HttpRequest req, Throwable cause) {
            if (cause instanceof LocallySpecificException) {
                return HttpResponse.of(HttpStatus.SERVICE_UNAVAILABLE);
            }
            if (cause instanceof LocallyGeneralException) {
                return HttpResponse.of(HttpStatus.BAD_REQUEST);
            }
            // To the next exception handler.
            return ExceptionHandlerFunction.fallthrough();
        }
Throws an {@link HttpStatusException} which can be handled by the default exception handler.
The {@code status code} of the exception is from the path variable of {@code status}.
examples/annotated-http-service/src/main/java/example/armeria/server/annotated/ExceptionHandlerService.java