Passed forward the error response in a ajax call failure.
Merge pull request #71 from priyaaank/error-response-patch

Passed forward the error response in a ajax call failure.