Fix error on empty response bodies, add custom message.