cancel
Showing results for 
Search instead for 
Did you mean: 

400 Bad HTTP Request

Ch_97
Discoverer
254

Hello, SAP Community!

We’re encountering an HTTP 400 Bad Request error when attempting to send data to an external server via API from our SAP S/4HANA system. I’d like to share details about the issue and gather insights on possible solutions.

Issue Details:

  1. Setup: SAP S/4HANA system using API for data transfer to an external server.

  2. Error: HTTP 400 Bad Request received in the SAP system when trying to send the data.

  3. SMICM Logs: The SMICM logs reveal the following error message:

    ERROR => HttpParseResponseHeader: illegal status code: 610; status reason: Undefined
  4. Context: This error seems to point to an issue in parsing the response header. The status code 610 is unexpected, and "Undefined" status suggests there’s an invalid response format coming from the server.

Troubleshooting Steps Taken So Far:

  1. Checked API Payload and Headers: Verified the JSON structure and ensured that the Content-Type is set to application/json.
  2. Validated API Endpoint: Confirmed that the API endpoint URL and authentication parameters are accurate.
  3. Network Check: Verified network connectivity between SAP S/4HANA and the external server, confirming no firewall or connectivity blocks.
  4. icm/HTTP/max_request_size_KB parameter is currently set to its default value of 102400. We changed the parameter value dynamically in RZ11 to the maximum value, but the 400 Bad Request error persists

Questions for the Community:

  1. Header Parsing Issue: Has anyone else encountered the “illegal status code: 610” error in SMICM logs? If so, what was the root cause, and how did you resolve it?
  2. Additional Logging: Are there specific SAP transaction codes or logs where we could capture more detailed information about the HTTP request and response?
  3. SMICM Configurations: Could this issue be related to specific SMICM settings, or might there be configuration parameters to adjust to handle unexpected status codes?

Any advice or shared experiences would be greatly appreciated! If you've dealt with similar HTTP response parsing issues in SAP S/4HANA, especially around undefined status codes, your insights could be immensely helpful in resolving this challenge.

Thank you in advance!

Thanks & Regards,
Hemachandiran R
SAP Basis Administrator

Accepted Solutions (0)

Answers (0)