Skip to main content

has_status

Function has_status 

Source
pub fn has_status(text: &str, status: u16) -> bool
Expand description

A branch protection read that means “no protection”: 404 “Branch not protected”, or the 403 True when text carries the HTTP status in the failed (404 ...) form that every request error here uses, or HTTP 404 from the CLI. The status code sits apart from the URL, so an issue number such as 1404 does not match