Check for empty body correctly from POST response. Thanks @smn