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

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

        return PresentationFactory::badRequest($error);
    }
public static function badRequest ( string $ message , $ reason = null , string $ path = null , array $ attributes = [ ] , $ identifier = null ) : PresentationInterface { $ error = new ErrorResource ( $ message , $ reason , $ path , $ attributes , $ identifier ) ; return PresentationFactory :: badRequest ( $ error ) ; }
Create the bad request error presentation.

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

@return PresentationInterface
Create the bad request error presentation .