public function asError($status = self::INTERNAL_ERROR)
    {
        if ($this->error_views) {
            $stream = $this->error_views->getStream($status);
        } else {
            $stream = null;
        }
        return Response::error($status, $this->data, $stream);
    }
public function asError($status = self::INTERNAL_ERROR)
    {
        if ($this->error_views) {
            $stream = $this->error_views->getStream($status);
        } else {
            $stream = null;
        }
        return Response::error($status, $this->data, $stream);
    }
public function asError ( $ status = self :: INTERNAL_ERROR ) { if ( $ this -> error_views ) { $ stream = $ this -> error_views -> getStream ( $ status ) ; } else { $ stream = null ; } return Response :: error ( $ status , $ this -> data , $ stream ) ; }
return a response with error number.

@param int|string $status
@return Response
return a response with error number .