Handle ObjNotFoundError and Error as client errors instead of server errors.
Meaning that:
- server should raise 400 on these errors instead of 500
- client should catch them and re-raise them.
Test Plan
Tests will fail because this diff depends on swh-core!131 (closed).
Migrated from D2688 (view on Phabricator)