EllipseSynergie\ApiResponse\AbstractResponse::errorNotFound PHP Method

errorNotFound() public method

Generates a response with a 404 HTTP header and a given message.
public errorNotFound ( string $message = 'Resource Not Found', array $headers = [] ) : mixed
$message string
$headers array
return mixed
    public function errorNotFound($message = 'Resource Not Found', array $headers = [])
    {
        return $this->setStatusCode(404)->withError($message, static::CODE_NOT_FOUND, $headers);
    }