Fixes from master

- UI fix
- Build metadata generation fix
- Rest endpoint error code fix