- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 451 for status_ (0.04 sec)
-
docs/en/docs/tutorial/response-status-code.md
<img src="/img/tutorial/response-status-code/image02.png"> /// note | Technical Details You could also use `from starlette import status`. **FastAPI** provides the same `starlette.status` as `fastapi.status` just as a convenience for you, the developer. But it comes directly from Starlette. /// ## Changing the default { #changing-the-default }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 4K bytes - Viewed (0) -
docs/uk/docs/tutorial/response-status-code.md
Ви можете використовувати зручні змінні з `fastapi.status` {* ../../docs_src/response_status_code/tutorial002.py hl[1,6] *} Ці змінні просто для зручності. Вони містять ті ж самі числа, але Ви можете скористатися автозаповненням в редакторі: <img src="/img/tutorial/response-status-code/image02.png"> /// note | Технічні деталі Ви також можете використати `from starlette import status`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Wed Mar 19 17:04:17 UTC 2025 - 6.1K bytes - Viewed (0) -
docs/en/docs/advanced/additional-status-codes.md
# Additional Status Codes { #additional-status-codes } By default, **FastAPI** will return the responses using a `JSONResponse`, putting the content you return from your *path operation* inside of that `JSONResponse`. It will use the default status code or the one you set in your *path operation*. ## Additional status codes { #additional-status-codes_1 }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2K bytes - Viewed (0) -
docs/en/docs/advanced/response-change-status-code.md
# Response - Change Status Code { #response-change-status-code } You probably read before that you can set a default [Response Status Code](../tutorial/response-status-code.md){.internal-link target=_blank}. But in some cases you need to return a different status code than the default. ## Use case { #use-case } For example, imagine that you want to return an HTTP status code of "OK" `200` by default.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 1.5K bytes - Viewed (0) -
guava/src/com/google/common/math/Stats.java
* versions. */ public static Stats fromByteArray(byte[] byteArray) { checkNotNull(byteArray); checkArgument( byteArray.length == BYTES, "Expected Stats.BYTES = %s remaining , got %s", BYTES, byteArray.length); return readFrom(ByteBuffer.wrap(byteArray).order(ByteOrder.LITTLE_ENDIAN)); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 24.8K bytes - Viewed (0) -
cmd/site-replication.go
return errSRInvalidRequest(errInvalidArgument) } userReq := *change.UserReq if userReq.Status != "" && userReq.SecretKey == "" { // Status is set without secretKey updates means we are // only changing the account status. _, err = globalIAMSys.SetUserStatus(ctx, change.AccessKey, userReq.Status) } else { // We don't allow internal user creation with LDAP enabled for now
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 184.7K bytes - Viewed (0) -
docs/ru/docs/advanced/additional-status-codes.md
**FastAPI** предоставляет тот же `starlette.responses` через `fastapi.responses` просто для вашего удобства, как разработчика. Но большинство доступных Response-классов поступают напрямую из Starlette. То же самое касается и `status`. /// ## OpenAPI и документация API
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Jul 04 05:17:17 UTC 2025 - 3.3K bytes - Viewed (0) -
docs/ru/docs/advanced/response-change-status-code.md
# Response - Изменение cтатус кода Вы, вероятно, уже читали о том, что можно установить [Состояние ответа по умолчанию](../tutorial/response-status-code.md){.internal-link target=_blank}. Но в некоторых случаях вам нужно вернуть код состояния, отличный от установленного по умолчанию. ## Пример использования Например, представьте, что вы хотите возвращать HTTP код состояния "OK" `200` по умолчанию.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Jun 16 11:11:10 UTC 2025 - 2.6K bytes - Viewed (0) -
cmd/kms-handlers_test.go
wantStatusCode: http.StatusOK, wantResp: []string{"kms"}, }, // Status tests { name: "status as root want success", method: http.MethodGet, path: kmsStatusPath, asRoot: true, wantStatusCode: http.StatusOK, wantResp: []string{"MinIO builtin"}, }, { name: "status as user with no policy want forbidden",
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 22.3K bytes - Viewed (0) -
cmd/bucket-handlers_test.go
// Call the ServeHTTP to executes the registered handler. apiRouter.ServeHTTP(rec, req) // Assert the response code with the expected status. if rec.Code != testCase.expectedRespStatus { t.Errorf("Test %d: MinIO %s: Expected the response status to be `%d`, but instead found `%d`", i, instanceType, testCase.expectedRespStatus, rec.Code) } // read the response body.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 39.8K bytes - Viewed (0)