We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2dfe279 + 6309967 commit d679ee9Copy full SHA for d679ee9
src/main/scala/de/upb/cs/swt/delphi/instanceregistry/Server.scala
@@ -111,7 +111,7 @@ object Server extends HttpApp with JsonSupport with AppLogging {
111
val matchingInstances = instances filter {instance => instance.componentType == compType}
112
if(matchingInstances.isEmpty){
113
log.warning(s"Could not find matching instance for type $compType .")
114
- complete(HttpResponse(StatusCodes.BadRequest, entity = s"Could not find matching instance for type $compType"))
+ complete(HttpResponse(StatusCodes.NotFound, entity = s"Could not find matching instance for type $compType"))
115
}
116
else {
117
val matchedInstance = matchingInstances.iterator.next()
0 commit comments