API encoding errors
If the API fails to encode a response, no details about the encoding failure are retrievable. The error should be included in the HTTP error response. build.Critical
is another reasonable option, since response encoding is something that should really never fail.
Also note that since these errors are not JSON, siac fails to properly parse them.