Change response to packageVersionNotFound from badRequest in case of
parsing issues or missing artifacts at the repo. This normalizes the API somewhat.
@@ -82,7 +82,7 @@ public class PackageApi {
return Responses.ok(result);
}
catch (IllegalArgumentException e) {
- return Responses.badRequest();
+ return Responses.packageVersionNotFound();
}
}
@@ -103,7 +103,7 @@ public class PackageApi {
return Responses.ok(result);
}
catch (IllegalArgumentException e) {
- return Responses.badRequest();
+ return Responses.packageVersionNotFound();
}
}
@@ -126,7 +126,7 @@ public class PackageApi {
return Responses.ok(result);
}
catch (IllegalArgumentException e) {
- return Responses.badRequest();
+ return Responses.packageVersionNotFound();
}
}
