`getStatusCode` is probably a better name.