Added customErrors mode