No-Library (pure JS), HTML, CSS, JavaScript
This code shows how to integrate a Promise with the $http call to get proper notification when a request has exceeded the timeout.
Mootools 1.4.5, HTML, CSS, JavaScript
Fiddle for Questions