ensure status code is a number

Here you go, @raha936.