EllipseSynergie\ApiResponse\AbstractResponse::errorForbidden PHP 메소드

errorForbidden() 공개 메소드

Generates a response with a 403 HTTP header and a given message.
public errorForbidden ( string $message = 'Forbidden', array $headers = [] ) : mixed
$message string
$headers array
리턴 mixed
    public function errorForbidden($message = 'Forbidden', array $headers = [])
    {
        return $this->setStatusCode(403)->withError($message, static::CODE_FORBIDDEN, $headers);
    }