Neos\Flow\Exception::getStatusCode PHP Method

getStatusCode() public method

Returns the HTTP status code this exception corresponds to (defaults to 500).
public getStatusCode ( ) : integer
return integer
    public function getStatusCode()
    {
        return $this->statusCode;
    }

Usage Example

 /**
  * Return the status code of the nested exception, if any.
  *
  * @return integer
  */
 public function getStatusCode()
 {
     $nestedException = $this->getPrevious();
     if ($nestedException !== null && $nestedException instanceof \Neos\Flow\Exception) {
         return $nestedException->getStatusCode();
     }
     return parent::getStatusCode();
 }