scripts, modules/http_client: fix htmlentities requires
Added more error checking and human-readable replies to derpibooru script.