[BUGFIX] Handle AGI 5xx responses