Changed to proper codes when timeout occurs