/** * Returns a 503 response, with body corresponding to the serialized exception. */ @Override public Response toResponse(NotCurrentLeaderException exception) { return ExceptionMappers.encode503ResponseWithRetryAfter(exception); } }
/** * Returns a 503 response, with body corresponding to the serialized exception. */ @Override public Response toResponse(NotCurrentLeaderException exception) { return ExceptionMappers.encode503ResponseWithRetryAfter(exception); } }