Added status codes to logout and delete methods