Added handling for generic ajax error

Reviewer: Dan V (post commit)

Issue: None