detecting 401 and return error

The get-for just did not check on errors coming from "request" method, but just extracted the resource from the map. In case of error this gave nil.
Unifies the code with the other resource listing methods