본문 바로가기
WIKI 기술 지식 베이스

응답 코드

원문 보기 위키 갱신

응답 코드 (Errors)

Turso API는 항상 HTTP 상태 코드로 응답하고, 오류가 발생하면 응답 본문에 오류 메시지를 함께 담아 돌려줘요. 어떤 코드가 어떤 의미인지 미리 알아두면 디버깅이 훨씬 쉬워요.

출처: 문서

본문

The Turso API will respond with an HTTP status code, and in the event of an error, return an error message in the response body.

Code Description
200 OK — Successful request
401 Unauthorized — Invalid or expired auth token
402 Payment required — Check you have an active subscription
403 Forbidden — You do not have permission to access this resource
409 Conflict — Resource already exists

더 알아보기 (Learn more)

  • API 퀵스타트 — 첫 요청부터 성공 응답까지 따라가 봐요.
  • 토큰 생성 — 401 오류를 피하려면 유효한 토큰이 필요해요.
  • API 소개 — 인증 방식과 기본 사용법을 안내해요.