Added error message to http ajax requests
Typo fix