Skip to content

Commit 8b259ec

Browse files
committed
fix: return 408 in case of timeout
1 parent b6fc162 commit 8b259ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_webhooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ def test():
140140
headers={'Content-Length': '2', 'Content-Type': 'application/json'},
141141
)
142142

143-
assert response.status == 400
144-
assert (await response.json()).get('error') == 'Malformed request'
143+
assert response.status == 408
144+
assert (await response.json()).get('error') == 'Request timed out'
145145

146146

147147
@cache

0 commit comments

Comments
 (0)