We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a3010b commit 06af1a7Copy full SHA for 06af1a7
backend/tenantfirstaid/feedback.py
@@ -21,15 +21,15 @@ def send_feedback() -> Tuple[str, int]:
21
file = request.files.get("transcript")
22
23
if not file:
24
- return "No file provided", 400
+ return "No file provided", 404
25
26
html_content: str = file.read().decode("utf-8")
27
pdf_content: Optional[bytes] = convert_html_to_pdf(html_content)
28
if pdf_content is None:
29
return "PDF conversion failed", 500
30
31
if len(pdf_content) > MAX_ATTACHMENT_SIZE:
32
- return "Attachment too large", 400
+ return "Attachment too large", 413
33
34
try:
35
msg = EmailMessage(
0 commit comments