src/Resource/Error/ErrorPresentationFactory.php
public static function create(
        int $statusCode,
        string $message,
        $reason = null,
        string $path = null,
        array $attributes = [],
        $identifier = null
    ): PresentationInterface {
        $error = new ErrorResource($message, $reason, $path, $attributes, $identifier);

        return PresentationFactory::create($statusCode, $error);
    }
public static function create(
        int $statusCode,
        string $message,
        $reason = null,
        string $path = null,
        array $attributes = [],
        $identifier = null
    ): PresentationInterface {
        $error = new ErrorResource($message, $reason, $path, $attributes, $identifier);

        return PresentationFactory::create($statusCode, $error);
    }
public static function create ( int $ statusCode , string $ message , $ reason = null , string $ path = null , array $ attributes = [ ] , $ identifier = null ) : PresentationInterface { $ error = new ErrorResource ( $ message , $ reason , $ path , $ attributes , $ identifier ) ; return PresentationFactory :: create ( $ statusCode , $ error ) ; }
Create default error presentation.

@param int         $statusCode
@param string      $message
@param string|null $reason
@param string|null $path
@param array       $attributes
@param string|int  $identifier

@return PresentationInterface
Create default error presentation .