Added error objects for API's
Added error objects for API's
Added error feedback in template
Merge pull request #210 from Coenego/api-error-handling

Api error handling