Add exceptions that collections can raise if objects are not found.

And add support for these in the associated request handlers.
Test added.