You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
WebDav HTTP code 207 [link] is not supported.
To Reproduce
Steps to reproduce the behavior:
Python code to reproduce the error
from flask_pydantic_spec import Response
from pydantic import BaseModel
class ResponseModel(BaseModel):
status: str
Response(HTTP_207=ResponseModel)
Expected behavior
A clear and concise description of what you expected to happen.
HTTP 207 should be supported.
Error Message
Paste the error message.
Traceback (most recent call last):
File "/home/rishi/workspace/lyrasis/circulation/repl_misc.py", line 21, in <module>
Response(HTTP_207=ResponseModel)
File "/home/rishi/.cache/pypoetry/virtualenvs/palace_manager-GfFmkM1k-py3.9/lib/python3.9/site-packages/flask_pydantic_spec/types.py", line 50, in __init__
assert key in DEFAULT_CODE_DESC, "invalid HTTP status code"
AssertionError: invalid HTTP status code
Desktop (please complete the following information):
OS: Linux
Version Ubuntu 20.04
Python Information (please complete the following information):
Python Version 3.9.5
Library Version 0.4.5
Additional context
Add any other context about the problem here.
207 Multi Status is not part of the IETF http status codes spec, but is an addition in the WebDav spec (linked above).
The text was updated successfully, but these errors were encountered:
Describe the bug
WebDav HTTP code 207 [link] is not supported.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
HTTP 207 should be supported.
Error Message
Paste the error message.
Desktop (please complete the following information):
Python Information (please complete the following information):
Additional context
Add any other context about the problem here.
207 Multi Status is not part of the IETF http status codes spec, but is an addition in the WebDav spec (linked above).
The text was updated successfully, but these errors were encountered: