- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 562 for Codes (0.09 seconds)
-
docs/ko/docs/advanced/additional-status-codes.md
# 추가 상태 코드 { #additional-status-codes } 기본적으로 **FastAPI**는 응답을 `JSONResponse`를 사용하여 반환하며, *경로 처리*에서 반환한 내용을 해당 `JSONResponse` 안에 넣어 반환합니다. 기본 상태 코드 또는 *경로 처리*에서 설정한 상태 코드를 사용합니다. ## 추가 상태 코드 { #additional-status-codes_1 } 기본 상태 코드와 별도로 추가 상태 코드를 반환하려면 `JSONResponse`와 같이 `Response`를 직접 반환하고 추가 상태 코드를 직접 설정할 수 있습니다. 예를 들어 항목을 업데이트할 수 있는 *경로 처리*가 있고 성공 시 200 “OK”의 HTTP 상태 코드를 반환한다고 가정해 보겠습니다.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 2.1K bytes - Click Count (0) -
docs/zh/docs/advanced/additional-status-codes.md
# 额外的状态码 { #additional-status-codes } **FastAPI** 默认使用 `JSONResponse` 返回一个响应,将你的 *路径操作* 中的返回内容放到该 `JSONResponse` 中。 **FastAPI** 会自动使用默认的状态码或者使用你在 *路径操作* 中设置的状态码。 ## 额外的状态码 { #additional-status-codes_1 } 如果你想要返回主要状态码之外的状态码,你可以通过直接返回一个 `Response` 来实现,比如 `JSONResponse`,然后直接设置额外的状态码。 例如,假设你想有一个 *路径操作* 能够更新条目,并且更新成功时返回 200 「成功」 的 HTTP 状态码。 但是你也希望它能够接受新的条目。并且当这些条目不存在时,会自动创建并返回 201 「创建」的 HTTP 状态码。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 1.9K bytes - Click Count (0) -
docs/en/docs/tutorial/response-status-code.md
/// note Some response codes (see the next section) indicate that the response does not have a body. FastAPI knows this, and will produce OpenAPI docs that state there is no response body. /// ## About HTTP status codes { #about-http-status-codes } /// note If you already know what HTTP status codes are, skip to the next section. ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 3.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/NtStatusTest.java
} } @Test @DisplayName("Should have status codes array") void testStatusCodesArray() { // When int[] codes = NtStatus.NT_STATUS_CODES; // Then assertNotNull(codes); assertTrue(codes.length > 0); // First code should be success assertEquals(NtStatus.NT_STATUS_SUCCESS, codes[0]); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0) -
docs/en/docs/reference/status.md
# Status Codes You can import the `status` module from `fastapi`: ```python from fastapi import status ``` `status` is provided directly by Starlette. It contains a group of named constants (variables) with integer status codes. For example: * 200: `status.HTTP_200_OK` * 403: `status.HTTP_403_FORBIDDEN` * etc.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 871 bytes - Click Count (0) -
src/test/java/jcifs/smb/WinErrorTest.java
// Helper to lookup a message by code using the production arrays private static Optional<String> lookupMessage(int code) { int[] codes = WinError.WINERR_CODES; String[] msgs = WinError.WINERR_MESSAGES; for (int i = 0; i < codes.length; i++) { if (codes[i] == code) { return Optional.of(msgs[i]); } } return Optional.empty(); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.4K bytes - Click Count (0) -
src/main/java/jcifs/smb/DosError.java
*/ package jcifs.smb; /** * Interface defining DOS error codes and their mappings to NT status codes. * Provides lookup tables for converting between DOS and NT error representations. */ public interface DosError { /** * Mapping table from DOS error codes to NT status codes. * Each entry contains a pair of [DOS error code, NT status code]. */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.8K bytes - Click Count (0) -
src/test/java/jcifs/DialectVersionTest.java
} @Test @DisplayName("Should have correct dialect codes for SMB2+ versions") void testDialectCodes() { // SMB1 should throw UnsupportedOperationException assertThrows(UnsupportedOperationException.class, () -> { DialectVersion.SMB1.getDialect(); }); // SMB2+ versions should have valid dialect codes assertTrue(DialectVersion.SMB202.getDialect() > 0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.1K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/DosError.java
*/ package jcifs.smb1.smb1; /** * Interface defining DOS error codes and their mappings to NT status codes for SMB1 protocol. * Provides lookup tables for converting between DOS and NT error representations. */ public interface DosError { /** * Mapping table from DOS error codes to NT status codes. * Each entry contains a pair of [DOS error code, NT status code]. */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.7K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/Hashing.java
} /** * Returns a hash code, having the same bit length as each of the input hash codes, that combines * the information of these hash codes in an ordered fashion. That is, whenever two equal hash * codes are produced by two calls to this method, it is <i>as likely as possible</i> that each * was computed from the <i>same</i> input hash codes in the <i>same</i> order. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 29.8K bytes - Click Count (0)