v0.0.5a -- added statusCode check