- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for IoT (0.01 seconds)
-
docs/en/docs/tutorial/handling-errors.md
# Handling Errors { #handling-errors } There are many situations in which you need to notify an error to a client that is using your API. This client could be a browser with a frontend, a code from someone else, an IoT device, etc. You could need to tell the client that: * The client doesn't have enough privileges for that operation. * The client doesn't have access to that resource. * The item the client was trying to access doesn't exist. * etc.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 8.9K bytes - Click Count (0) -
docs/tr/docs/tutorial/handling-errors.md
# Hataları Yönetme { #handling-errors } API’nizi kullanan bir client’a hata bildirmek zorunda olduğunuz pek çok durum vardır. Bu client; frontend’i olan bir tarayıcı, başka birinin yazdığı bir kod, bir IoT cihazı vb. olabilir. Client’a şunları söylemeniz gerekebilir: * Client’ın bu işlem için yeterli yetkisi yok. * Client’ın bu kaynağa erişimi yok. * Client’ın erişmeye çalıştığı öğe mevcut değil. * vb.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 9.7K bytes - Click Count (0) -
docs/es/docs/tutorial/handling-errors.md
Existen muchas situaciones en las que necesitas notificar un error a un cliente que está usando tu API. Este cliente podría ser un navegador con un frontend, un código de otra persona, un dispositivo IoT, etc. Podrías necesitar decirle al cliente que: * El cliente no tiene suficientes privilegios para esa operación. * El cliente no tiene acceso a ese recurso. * El ítem al que el cliente intentaba acceder no existe. * etc.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 9.6K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/handling-errors.md
# 錯誤處理 { #handling-errors } 在許多情況下,你需要通知使用你 API 的用戶端發生錯誤。 這個用戶端可能是帶有前端的瀏覽器、他人的程式碼、IoT 裝置等。 你可能需要告訴用戶端: * 用戶端沒有足夠權限執行該操作。 * 用戶端沒有權限存取該資源。 * 用戶端嘗試存取的項目不存在。 * 等等。 在這些情況下,通常會回傳範圍為 400(400 到 499)的 HTTP 狀態碼。 這類似於 200 範圍的 HTTP 狀態碼(200 到 299)。那些「200」狀態碼表示請求在某種程度上是「成功」的。 400 範圍的狀態碼表示用戶端錯誤。 還記得那些「404 Not Found」錯誤(和梗)嗎? ## 使用 `HTTPException` { #use-httpexception } 要向用戶端回傳帶有錯誤的 HTTP 回應,使用 `HTTPException`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 8.3K bytes - Click Count (0)