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

And add support for these in the associated request handlers.
Do we maybe need a test case for when the function returns a deferred?