When using RestApi to make HTTP requests, if the remote end returns an empty (Content-Length: 0) body, the RestCallback instance has its OnError method called with error code 8 (EREST_ERROR_APPERROR).
It does not matter if the HTTP server returns status 204 "No Content" or 200 "OK". In either case, DayZ reports error code 8.
An empty response body is a valid server response and should not be reported as an error when the HTTP status code is in the 200-299 range.
Note: I've only tested this with POST requests.