maybe getHttpCode is a better name