Detect ajax error with Featherlight.js

Viewed 57

Is there a way to detect if the resource requested by ajax-featherlight returns an error (i.e 500 response code)?

At the moment, I'm using feathelight's attribute loading to set an animated spinner but there's no way to alert the user if the request failed - it will look like the content is still loading.

Any suggestions?

0 Answers
Related