Small refactorings. Fixed ttApiErrorDisplay not working correctly upon request timeout.