import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
public synchronized Service getService(String name) throws ServiceException {
Service service = registeredServices.get(name);
if (service == null) {
- throw new ServiceException("Could not find service: " + name);
+ throw new ServiceException("Could not find service: " + name, HttpStatus.NOT_FOUND);
}
return service;
}