Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Code (0.13 sec)

  1. fastapi/applications.py

                    The default status code to be used for the response.
    
                    You could override the status code by returning a response directly.
    
                    Read more about it in the
                    [FastAPI docs for Response Status Code](https://fastapi.tiangolo.com/tutorial/response-status-code/).
                    """
                ),
            ] = None,
            tags: Annotated[
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  2. fastapi/routing.py

            # normalize enums e.g. http.HTTPStatus
            if isinstance(status_code, IntEnum):
                status_code = int(status_code)
            self.status_code = status_code
            if self.response_model:
                assert is_body_allowed_for_status_code(
                    status_code
                ), f"Status code {status_code} must not have a response body"
                response_name = "Response_" + self.unique_id
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top