Fix Response::toError() reference to request path

s/path/url
Add test for request() error object structure and message
Merge pull request #363 from shesek/patch-1

Fix Response::toError() reference to request path