Look for examples of how HTTP response headers are set in the hyperswitch codebase.…
- User
Look for examples of how HTTP response headers are set in the hyperswitch codebase. Specifically looking for where the HTTP status code and headers might be modified to include connector_http_status_code. Focus on payment flows.
Assistant
I'll search for examples of HTTP response headers being set in the hyperswitch codebase, particularly focusing on payment flows and where connector_http_status_code might be included.
First, let me explore the codebase structure to understand how it's organized.
Assistant
Let me search for files related to payment processing and HTTP headers:
Assistant
Now let me look for HTTP header related code, especially in payment flows:
Assistant
Let me broaden the search to find HTTP header manipulation in payment flows:
Assistant
Let me check the transformers.rs file which seems to be related to payments:
Assistant
Let me search for HTTP response related code in the broader codebase:
Assistant
Let me look at the payments helpers file since it seems to contain core payment logic:
Assistant
Let me search more specifically for HTTP status code handling in the payments flow:
Assistant
Let me look at the main payment response file since that's likely where HTTP responses are handled:
Assistant
Let me search for how HTTP headers are specifically set in relation to connectors or payment flows:
Assistant
Let me check how router data is structured and where HTTP status codes might be set:
Assistant
I see the connector_http_status_code field is defined on line 77 of the RouterData struct. Now let me look at how it's actually set in connector responses. Let me search for examples where connector_http_status_code is assigned:
Assistant
Let me examine the api.rs file which seems like a key service file:
Assistant
Let me look for how connector_http_status_code gets populated specifically in the connector integration part:
Assistant
Let me check the conversion_impls.rs file since it might show how status codes are converted:
Assistant
Looking at the conversion_impls.rs file, I can see on lines 160 and 241 that the connector_http_status_code field is being copied between the old RouterData and new RouterDataV2 structures. Let me look for actual implementations where the field gets populated from connector responses.
Let me look at some specific connector implementations to see how they handle setting the connector_http_status_code:
Assistant
Let me look at one specific connector transformer to understand how connector_http_status_code gets populated:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.