Fix mixup of x/y
Add check for HTTP status codes
Merge pull request #2 from licyeus/master

Fix mixup of x/y coords. Oops.