Removed HTTP code from http exception message.
Fixed typo.
Improved uses in query command.