- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 2,742 for error_ (0.09 seconds)
-
docs/ja/docs/tutorial/handling-errors.md
"type": "type_error.integer" } ] } ``` 以下のテキスト版を取得します: ``` Validation errors: Field: ('path', 'item_id'), Error: Input should be a valid integer, unable to parse string as an integer ``` ### `HTTPException`エラーハンドラのオーバーライド { #override-the-httpexception-error-handler } 同様に、`HTTPException`ハンドラをオーバーライドすることもできます。 例えば、これらのエラーに対しては、JSONではなくプレーンテキストを返すようにすることができます:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 11.2K bytes - Click Count (0) -
cmd/sts-errors.go
) // writeSTSErrorResponse writes error headers func writeSTSErrorResponse(ctx context.Context, w http.ResponseWriter, errCode STSErrorCode, err error) { stsErr := stsErrCodes.ToSTSErr(errCode) // Generate error response. stsErrorResponse := STSErrorResponse{} stsErrorResponse.Error.Code = stsErr.Code stsErrorResponse.RequestID = w.Header().Get(xhttp.AmzRequestID) stsErrorResponse.Error.Message = stsErr.Description if err != nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Feb 05 00:29:41 GMT 2025 - 6K bytes - Click Count (1) -
docs/es/docs/how-to/authentication-error-status-code.md
# Usar los códigos de estado antiguos 403 para errores de autenticación { #use-old-403-authentication-error-status-codes } Antes de FastAPI versión `0.122.0`, cuando las utilidades de seguridad integradas devolvían un error al cliente después de una autenticación fallida, usaban el código de estado HTTP `403 Forbidden`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 1.2K bytes - Click Count (0) -
docs/en/docs/how-to/authentication-error-status-code.md
# Use Old 403 Authentication Error Status Codes { #use-old-403-authentication-error-status-codes } Before FastAPI version `0.122.0`, when the integrated security utilities returned an error to the client after a failed authentication, they used the HTTP status code `403 Forbidden`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 1.2K bytes - Click Count (0) -
tests/hooks_test.go
if err := DB.Create(&product).Error; err == nil { t.Errorf("should got failed to save, but error is nil") } if DB.First(&Product4{}, "name = ?", product.Name).Error == nil { t.Errorf("should got RecordNotFound, but got nil") } product = Product4{Name: "Product-2", Price: 100, Item: ProductItem{Code: "valid"}} if err := DB.Create(&product).Error; err != nil {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jun 17 03:59:06 GMT 2024 - 16.7K bytes - Click Count (0) -
docs/ru/docs/how-to/authentication-error-status-code.md
# Использование старых статус-кодов ошибок аутентификации 403 { #use-old-403-authentication-error-status-codes } До версии FastAPI `0.122.0`, когда встроенные утилиты безопасности возвращали ошибку клиенту после неудачной аутентификации, они использовали HTTP статус-код `403 Forbidden`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 1.7K bytes - Click Count (0) -
cmd/admin-handler-utils.go
} return toAPIError(ctx, fmt.Errorf("error exporting %s from %s with: %w", entity, fname, err)) } // wraps import error for more context func importError(ctx context.Context, err error, fname, entity string) APIError { if entity == "" { return toAPIError(ctx, fmt.Errorf("error importing %s with: %w", fname, err)) } return toAPIError(ctx, fmt.Errorf("error importing %s from %s with: %w", entity, fname, err)) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Jul 03 07:17:20 GMT 2024 - 8.4K bytes - Click Count (0) -
docs/zh/docs/how-to/authentication-error-status-code.md
# 使用旧的 403 认证错误状态码 { #use-old-403-authentication-error-status-codes } 在 FastAPI `0.122.0` 版本之前,当内置的安全工具在认证失败后向客户端返回错误时,会使用 HTTP 状态码 `403 Forbidden`。 从 FastAPI `0.122.0` 版本开始,它们改用更合适的 HTTP 状态码 `401 Unauthorized`,并在响应中返回合理的 `WWW-Authenticate` 头,遵循 HTTP 规范,[RFC 7235](https://datatracker.ietf.org/doc/html/rfc7235#section-3.1)、[RFC 9110](https://datatracker.ietf.org/doc/html/rfc9110#name-401-unauthorized)。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 1.1K bytes - Click Count (0) -
tests/named_argument_test.go
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Dec 21 11:50:00 GMT 2021 - 2.7K bytes - Click Count (0) -
docs/ko/docs/how-to/authentication-error-status-code.md
# 이전 403 인증 오류 상태 코드 사용하기 { #use-old-403-authentication-error-status-codes } FastAPI 버전 `0.122.0` 이전에는, 통합 보안 유틸리티가 인증 실패 후 클라이언트에 오류를 반환할 때 HTTP 상태 코드 `403 Forbidden`을 사용했습니다. FastAPI 버전 `0.122.0`부터는 더 적절한 HTTP 상태 코드 `401 Unauthorized`를 사용하며, HTTP 명세인 [RFC 7235](https://datatracker.ietf.org/doc/html/rfc7235#section-3.1), [RFC 9110](https://datatracker.ietf.org/doc/html/rfc9110#name-401-unauthorized)를 따라 응답에 합리적인 `WWW-Authenticate` 헤더를 반환합니다.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 1.3K bytes - Click Count (0)