converted status codes to use guages