Statuscode is cast to int for logging format