> ## Documentation Index
> Fetch the complete documentation index at: https://docs.benzinga.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 오류

> 오류 발생 시 Benzinga API의 응답 방식.

Benzinga는 API 요청의 성공 또는 실패를 나타내기 위해 일반적인 HTTP 응답 코드를 사용합니다.
일반적으로 2xx 범위의 코드는 성공을 나타냅니다.
4xx 범위의 코드는 제공된 정보(예: 필수 매개변수가 누락되었거나 청구가 실패한 경우 등)에 따라 실패한 오류를 나타냅니다.
5xx 범위의 코드는 Benzinga 서버의 오류를 나타냅니다.

프로그램적으로 처리할 수 있는 일부 4xx 오류는 보고된 오류를 간략히 설명하는 오류 코드를 포함합니다.

<div id="parameters">
  ### Parameters
</div>

<ResponseField name="type" type="string">
  반환된 오류의 유형입니다.

  <code>invalid\_request\_error</code>, <code>not\_found\_error</code>, <code>creation\_error</code>,
  <code>update\_error</code>, <code>deletion\_error</code>, <code>forbidden\_error</code>, 또는 <code>authentication\_error</code> 중 하나입니다.
</ResponseField>

<ResponseField name="message" type="string">
  오류에 대한 더 자세한 정보를 제공하는, 사람이 읽고 이해할 수 있는 메시지입니다.
</ResponseField>

<ResponseField name="params" type="array">
  오류가 특정 파라미터와 관련된 경우, 여기에는 유효하지 않은 파라미터의 목록이 포함됩니다.
</ResponseField>

<div id="error-response">
  ## 오류 응답
</div>

* Unauthorized `401` - 유효하지 않은 토큰입니다. 제공한 토큰을 확인하세요.

<div
  style={{
border: '1px solid #ddd',
borderRadius: '8px',
padding: '16px',
fontSize: '14px',
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)',
backgroundColor: '#f9f9f9',
maxWidth: '500px',
}}
>
  <div
    style={{
    display: 'flex',
    justifyContent: 'space-between',
    alignItems: 'center',
}}
  >
    <div style={{ color: '#000000'}}>
      ❗ wss\://api.benzinga.com/api/v1/analyst/insights/stream?token=bz.p\*\*\* 에 연결할 수 없습니다.
    </div>
  </div>

  <div style={{ fontWeight: 'bold', marginBottom: '8px' }}>
    오류: 예기치 않은 서버 응답: 401
  </div>

  <div style={{ color: 'grey', fontWeight: 'bold', marginBottom: '-4px' }}>
    핸드셰이크 상세 정보
  </div>

  <div style={{ marginBottom: '4px' }}>
    <span> <strong>요청 메서드:</strong> </span><span style={{ color: 'blue' }}>"GET"</span>
  </div>

  <div style={{ marginBottom: '4px' }}>
    <span> <strong>상태 코드:</strong> </span><span style={{ color: 'blue' }}>"401 Unauthorized"</span>
  </div>
</div>

* Bad Gateway `502` - 라우트가 잘못되었거나 서버 오류입니다.

<div
  style={{
border: '1px solid #ddd',
borderRadius: '8px',
padding: '16px',
fontSize: '14px',
boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)',
backgroundColor: '#f9f9f9',
maxWidth: '500px',
}}
>
  <div
    style={{
    display: 'flex',
    justifyContent: 'space-between',
    alignItems: 'center',
}}
  >
    <div style={{ color: '#000000'}}>
      ❗ wss\://api.benzinga.com/api/v1/analyst/insights/stream?token=bz.p\*\*\* 에 연결할 수 없습니다.
    </div>
  </div>

  <div style={{ fontWeight: 'bold', marginBottom: '8px' }}>
    오류: 예기치 않은 서버 응답: 502
  </div>

  <div style={{ color: 'grey', fontWeight: 'bold', marginBottom: '-4px' }}>
    핸드셰이크 상세 정보
  </div>

  <div style={{ marginBottom: '4px' }}>
    <span> <strong>요청 메서드:</strong> </span><span style={{ color: 'blue' }}>"GET"</span>
  </div>

  <div style={{ marginBottom: '4px' }}>
    <span> <strong>상태 코드:</strong> </span><span style={{ color: 'blue' }}>"502 Bad Gateway"</span>
  </div>
</div>
