Make cli return 0 only when http-status==200, add tests for query params.