converted status codes to use guages (fixed syntax)