Change status code from str to int in api_user_logout