Lines Matching refs:statuscode
55 typeset h statuscode statusmsg i
58 IFS=$' \t\r' read -r h statuscode statusmsg # read HTTP/1.[01] <code>
60 [[ "$statuscode" != ~(Elr)[0-9]* ]] && { print -u2 -f $"%s: invalid status code\n" "$0" ; return 1 ; }
61 response.statuscode="$statuscode"
141 if (( httpresponse.statuscode >= 200 && httpresponse.statuscode <= 299 )) ; then
145 print -u2 -f $"tinyurl response was (%s,%s):\n%s\n" "${httpresponse.statuscode}" "${httpresponse.statusmsg}" "${response}"
187 if (( httpresponse.statuscode >= 200 && httpresponse.statuscode <= 299 )) ; then
192 print -u2 -f $"tr.im response was (%s,%s):\n%s\n" "${httpresponse.statuscode}" "${httpresponse.statusmsg}" "${response}"