- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for 5xx (0.01 seconds)
-
cmd/metrics-v3-api.go
"Total number of requests", "name", "type") apiRequestsErrorsTotalMD = NewCounterMD(apiRequestsErrorsTotal, "Total number of requests with (4xx and 5xx) errors", "name", "type") apiRequests5xxErrorsTotalMD = NewCounterMD(apiRequests5xxErrorsTotal, "Total number of requests with 5xx errors", "name", "type") apiRequests4xxErrorsTotalMD = NewCounterMD(apiRequests4xxErrorsTotal, "Total number of requests with 4xx errors", "name", "type")
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Sep 24 17:13:00 GMT 2024 - 9.4K bytes - Click Count (0) -
fastapi/utils.py
# Ref: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#patterned-fields-1 if status_code in { "default", "1XX", "2XX", "3XX", "4XX", "5XX", }: return True current_status_code = int(status_code) return not (current_status_code < 200 or current_status_code in {204, 205, 304}) def get_path_param_names(path: str) -> set[str]:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:41:21 GMT 2026 - 4.2K bytes - Click Count (0) -
internal/http/response-recorder.go
) // ResponseRecorder - is a wrapper to trap the http response // status code and to record the response body type ResponseRecorder struct { http.ResponseWriter io.ReaderFrom StatusCode int // Log body of 4xx or 5xx responses LogErrBody bool // Log body of all responses LogAllBody bool ttfbHeader time.Duration ttfbBody time.Duration StartTime time.Time // number of bytes written bytesWritten intCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 5.5K bytes - Click Count (0) -
tests/test_additional_responses_router.py
"/c", responses={ "400": {"description": "Error with str"}, "5xx": {"description": "Error with range, lower"}, "default": {"description": "A default response"}, }, ) async def c(): return "c" @router.get( "/d", responses={ "400": {"description": "Error with str"}, "5XX": {"model": ResponseModel}, "default": {"model": ResponseModel}, }, )Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 5.6K bytes - Click Count (0)