Improve responses error messages.

404 when no object could be found for a given path, 405 on unallowed
method, etc.