Corrected error handling for tokens model and usage.