Fix error message only if no body is retuned