src/Httpstatus.php
public function mergeHttpStatus($code, $text)
    {
        $code = $this->filterStatusCode($code);
        $text = $this->filterReasonPhrase($text);
        if ($this->hasReasonPhrase($text) && $this->getStatusCode($text) !== $code) {
            throw new RuntimeException('The submitted reason phrase is already present in the collection');
        }

        $this->httpStatus[$code] = $text;
    }
public function mergeHttpStatus($code, $text)
    {
        $code = $this->filterStatusCode($code);
        $text = $this->filterReasonPhrase($text);
        if ($this->hasReasonPhrase($text) && $this->getStatusCode($text) !== $code) {
            throw new RuntimeException('The submitted reason phrase is already present in the collection');
        }

        $this->httpStatus[$code] = $text;
    }
public function mergeHttpStatus ( $ code , $ text ) { $ code = $ this -> filterStatusCode ( $ code ) ; $ text = $ this -> filterReasonPhrase ( $ text ) ; if ( $ this -> hasReasonPhrase ( $ text ) && $ this -> getStatusCode ( $ text ) !== $ code ) { throw new RuntimeException ( 'The submitted reason phrase is already present in the collection' ) ; } $ this -> httpStatus [ $ code ] = $ text ; }
Add or Update the HTTP Status array.

@param int    $code a HTTP status Code
@param string $text a associated reason phrase

@throws RuntimeException if the HTTP status code or the reason phrase are invalid
Add or Update the HTTP Status array .