Help for this page

Select Code to Download


  1. or download this
    switch ($response_code) {
        case '200' {              # OK
    ...
        case '503' { exit 30; }   # SERVICE_ERROR
        else       { exit -1; }
    }
    
  2. or download this
    for ($response_code) {
        if ($_ == 200) {         # OK
    ...
    
        exit 255;
    }