An internal server error is raised when trying to modify a non-existing repository
When I try to modify a non-existing repository with random content, an internal server error is raised:
pulpcore.app.models.repository.Repository.DoesNotExist: Repository matching query does not exist.
The following call triggered this error and the same behavior was also observed for pulp_file:
http POST :24817/pulp/api/v3/repositories/rpm/rpm/3d5b865a-069c-4455-8226-564d2040aee1/modify/ add_content_units:="[\"\"]"
Pulp should rather return an HTTP 404 response saying something like "The requested resource was not found in this server".