The new input parameter (header) X-Ai-InstanceOwnerIdentifier doesn't handle cases where Register returns bad request. It results in an internal server error.
If the register lookup returns 400, then the operation as a whole should return a Bad Request response.
Description of the bug
The new input parameter (header) X-Ai-InstanceOwnerIdentifier doesn't handle cases where Register returns bad request. It results in an internal server error.
If the register lookup returns 400, then the operation as a whole should return a Bad Request response.
Steps To Reproduce
Tested in AT22: Endpoint: https://platform.at22.altinn.cloud/storage/api/v1/instances?org=ttd