fix exception if response is not successful

updade get_resource method
Merge pull request #12 from Thinkei/bug/employee-not-successfull-response

fix exception if response is not successful