Feature/resource error api