Fix #38

Considers result from request an object and get error information from it.