Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ server_error
Function
server_error
tests/lib/threads/helpers.py:775–776 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
773
774
775
def
server_error() -> httpx2.Response:
776
return
api_error_response(500,
"api_error"
,
"Internal server error"
)
777
778
779
def
stream_error_response() -> httpx2.Response:
Callers
15
test_runner_sends_a_message_appended_to_the_thread_while_a_turn_is_paused_with_the_resume
Method · 0.85
test_continue_unthreaded_counts_the_create_after_a_replay_that_failed_as_the_replay
Method · 0.85
test_turn_that_failed_is_not_sent_with_the_next_turn
Method · 0.85
test_messages_appended_before_a_call_that_fails_stay_staged
Method · 0.85
test_failed_replay_clears_previous_message_id
Method · 0.85
test_turn_after_a_failed_replay_creates_a_thread_with_the_full_history
Method · 0.85
test_failed_send_lets_the_next_send_run
Method · 0.85
test_stream_error_takes_the_turn_back
Method · 0.85
test_send_with_no_messages_still_sends_a_partial_turn_again_after_a_call_that_failed
Method · 0.85
test_a_one_turn_system_or_tools_on_a_first_turn_that_fails_does_not_stay_with_the_thread
Method · 0.85
test_failed_send_lets_the_next_send_run
Method · 0.85
test_messages_appended_before_a_call_that_fails_stay_staged
Method · 0.85
Calls
1
api_error_response
Function · 0.85
Tested by
15
test_runner_sends_a_message_appended_to_the_thread_while_a_turn_is_paused_with_the_resume
Method · 0.68
test_continue_unthreaded_counts_the_create_after_a_replay_that_failed_as_the_replay
Method · 0.68
test_turn_that_failed_is_not_sent_with_the_next_turn
Method · 0.68
test_messages_appended_before_a_call_that_fails_stay_staged
Method · 0.68
test_failed_replay_clears_previous_message_id
Method · 0.68
test_turn_after_a_failed_replay_creates_a_thread_with_the_full_history
Method · 0.68
test_failed_send_lets_the_next_send_run
Method · 0.68
test_stream_error_takes_the_turn_back
Method · 0.68
test_send_with_no_messages_still_sends_a_partial_turn_again_after_a_call_that_failed
Method · 0.68
test_a_one_turn_system_or_tools_on_a_first_turn_that_fails_does_not_stay_with_the_thread
Method · 0.68
test_failed_send_lets_the_next_send_run
Method · 0.68
test_messages_appended_before_a_call_that_fails_stay_staged
Method · 0.68