- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 442 for DETAIL (0.2 seconds)
-
tests/test_security_api_key_cookie_description.py
def test_security_api_key_no_key(): client = TestClient(app) response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "APIKey" def test_openapi_schema(): client = TestClient(app) response = client.get("/openapi.json")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.3K bytes - Click Count (0) -
tests/test_pydantic_v1_error.py
def endpoint(): # pragma: no cover return {"name": "test"} def test_raises_pydantic_v1_model_in_additional_responses_model() -> None: class ErrorModelV1(BaseModel): detail: str app = FastAPI() with pytest.raises(PydanticV1NotSupportedError): @app.get( "/responses", response_model=None, responses={400: {"model": ErrorModelV1}} )
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.3K bytes - Click Count (0) -
docs_src/handling_errors/tutorial006_py310.py
return await request_validation_exception_handler(request, exc) @app.get("/items/{item_id}") async def read_item(item_id: int): if item_id == 3: raise HTTPException(status_code=418, detail="Nope! I don't like 3.")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 928 bytes - Click Count (0) -
compat/maven-builder-support/src/main/java/org/apache/maven/building/ProblemCollector.java
/** * Adds the specified problem. * Either message or exception is required * * @param severity The severity of the problem, must not be {@code null}. * @param message The detail message of the problem, may be {@code null}. * @param line The one-based index of the line containing the problem or {@code -1} if unknown.Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jan 15 18:51:29 GMT 2025 - 2.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbUnsupportedOperationException.java
super("Operation is not supported with the negotiated capabilities"); } /** * Constructs a new SmbUnsupportedOperationException with the specified message * @param msg the detail message */ public SmbUnsupportedOperationException(final String msg) { super(msg); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.6K bytes - Click Count (0) -
docs_src/dependencies/tutorial014_an_py310.py
yield session def get_user(user_id: int, session: Annotated[Session, Depends(get_session)]): user = session.get(User, user_id) if not user: raise HTTPException(status_code=403, detail="Not authorized") session.close() def generate_stream(query: str): for ch in query: yield ch time.sleep(0.1) @app.get("/generate", dependencies=[Depends(get_user)])
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Sep 29 03:29:38 GMT 2025 - 957 bytes - Click Count (0) -
ci/official/envs/windows_x86_2022
# when using variables like `TFCI_OUTPUT_DIR` in `docker exec commands, # requiring conditional path adjustments throughout the CI scripts. # Note: This does not work for `docker cp` commands. # For a little more detail, see: # https://github.com/tensorflow/tensorflow/blob/cc3006af6fea8d2a1360b3b5e65f9d14bbdb7094/ci/devinfra/docker/windows2022/Dockerfile#L196 TFCI_OUTPUT_WIN_DOCKER_DIR='C:/drive_t'
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Nov 06 19:44:26 GMT 2025 - 2.7K bytes - Click Count (0) -
android/guava/src/com/google/common/xml/XmlEscapers.java
* * <p>This escaper substitutes {@code 0xFFFD} for non-whitespace control characters and the * character values {@code 0xFFFE} and {@code 0xFFFF} which are not permitted in XML. For more * detail see section <a href="http://www.w3.org/TR/2008/REC-xml-20081126/#charsets">2.2</a> of * the XML specification. * * <p>This escaper does not escape non-ASCII characters to their numeric character referencesCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Sep 11 17:06:34 GMT 2025 - 6.4K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/BlockDetailRenderer.java
Element section = document.createElement("section"); parent.appendChild(section); section.setAttribute("id", blockDoc.getId()); section.setAttribute("role", "detail"); Element title = document.createElement("title"); section.appendChild(title); Element literal = document.createElement("literal"); title.appendChild(literal);Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 3.7K bytes - Click Count (0) -
fastapi/security/open_id_connect_url.py
self.auto_error = auto_error def make_not_authenticated_error(self) -> HTTPException: return HTTPException( status_code=HTTP_401_UNAUTHORIZED, detail="Not authenticated", headers={"WWW-Authenticate": "Bearer"}, ) async def __call__(self, request: Request) -> str | None: authorization = request.headers.get("Authorization")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 16 10:16:48 GMT 2026 - 3.1K bytes - Click Count (0)