Add @AutoConfigureBefore and simple implementation

[#54597932] [bs-273] Circular view reference for /error