New option added to Soracom Funk to skip HTTP status code from responses
A new group setting called "Skip Status Code" (skipStatusCode
) has been added to the Soracom Funk UDP entry point and TCP entry point. When you enable this setting, Funk responses sent to devices omit the leading HTTP status code and the following space.
Background
Previously, when using the Funk UDP entry point or TCP entry point (*1), Funk responses always included a prefix in the Soracom Funk format: HTTP status code + space + response body returned by the Function as a Service (FaaS) function
.
For simple device implementations that did not use the status code, or for custom protocols where leading numeric characters created compatibility issues, additional processing was required to remove this prefix.
(*1) This also applies when using a Unified Endpoint with the response format set to SORACOMFunk
.
Added functionality
When you enable "Skip Status Code" in the group settings:
- The leading
HTTP status code + space
is removed from responses returned via the UDP entry point and TCP entry point. - Whether the HTTP status code is in the 200 range or 400 and above, only the response body returned by the Function as a Service (FaaS) function is returned.
- Unified format responses (when using a Unified Endpoint with response format set to
Unified
) are not affected; thestatusCode
field remains included.
The Soracom CLI and Soracom API now include the skipStatusCode
configuration parameter (Boolean). Set it to true
to apply the same behavior programmatically.
For configuration steps and response examples, refer to the documentation below.
Documentation
If you have any questions, please contact Soracom Support.