While creating Handler integration tests we've noticed the Attribution API has only a 'OK' response. There are multiple crash points that throw errors so we should catch these and return appropriate response.
- If checkAccessPermission throws return a 403
- If Assert::invariant( $pageIdentity !== null ) throws return a 404
- If Assert::invariant( $page !== null ) throws return a 404
- Introduce handler tests that cover these cases
- Log the errors